/* Prisma Marketing Site — inspired by app tokens
   Maps brand palette from packages/ui/src/theme/colors.ts to CSS variables for web */

:root {
  --bg: #ffffff;
  --surface: #f7f7f9;
  --surface-subtle: #efeff2;
  --text-primary: #0e1116;
  --text-secondary: #596273;
  --brand: #4e91a1; /* teal 500 */
  --brand-pressed: #3e7583;
  --accent: #666695; /* indigo 500 */
  --amber: #eac684; /* amber 500 */
  --border: #e1e2e6;
  --divider: #d9dde3;
  --focus: #4e91a1;
  --success: #2e7d67;
  --warning: #d4a85d;
  --danger: #b94e4b;
  --muted: #9aa1ac;
  --radius-2: 8px;
  --radius-3: 12px;
  --radius-4: 16px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --shadow-1: 0 2px 6px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text-primary);
  background: var(--bg);
  min-height: 100vh;
}

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--space-6); }

.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 9999; backdrop-filter: saturate(180%) blur(8px); background: rgba(255,255,255,0.9); border-bottom: 1px solid var(--divider); will-change: transform; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

/* Add padding to body to account for fixed header */
main { padding-top: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-primary); font-weight: 700; letter-spacing: -0.01em; }
.brand-logo { display: block; flex-shrink: 0; width: 28px; height: 28px; }
.brand-name { font-size: 18px; }
.nav { display: none; gap: 20px; }
.nav a { color: var(--text-secondary); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--text-primary); }
.cta-wrap { display: flex; gap: 10px; }

@media (min-width: 860px) { .nav { display: flex; } }

.btn { --_bg: var(--brand); --_text: white; display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--_bg); color: var(--_text); font-weight: 600; text-decoration: none; border: 1px solid transparent; box-shadow: none; transition: background .15s ease, box-shadow .15s ease, transform .06s ease; }
.btn:hover { background: var(--brand-pressed); }
.btn:focus { outline: none; box-shadow: 0 0 0 3px rgba(78,145,161,0.25); }
.btn:active { transform: translateY(1px); }
.btn-ghost { --_bg: transparent; --_text: var(--text-primary); border-color: var(--divider); }
.btn-ghost:hover { background: #f3f5f7; }
.btn-outline { --_bg: transparent; --_text: var(--text-primary); border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: rgba(78,145,161,0.08); }
.btn-lg { height: 48px; padding: 0 22px; font-size: 16px; }
.btn-small { height: 32px; padding: 0 12px; font-size: 14px; }

.section { padding: 72px 0; }

.hero { background: linear-gradient(120deg, rgba(137,193,189,0.12), rgba(102,102,149,0.08)); border-bottom: 1px solid var(--divider); }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: center; }
.hero-copy h1 { font-size: 44px; line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 12px; }
.hero-copy .lead { font-size: 20px; color: var(--text-secondary); margin: 0 0 20px; }
.cta-row { display: flex; gap: 12px; margin: 16px 0 10px; }
.hero-meta { font-size: 14px; color: var(--muted); }
.hero { padding: 56px 0 64px; }
.hero-media img { width: 100%; height: auto; border-radius: var(--radius-4); box-shadow: var(--shadow-1); }
@media (min-width: 980px) { .hero-inner { grid-template-columns: 1.1fr 1fr; } }

.trust { background: var(--surface); border-bottom: 1px solid var(--divider); }
.trust-inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.trust-item { display: flex; align-items: center; gap: 10px; justify-content: center; padding: 10px 14px; border-radius: 999px; background: white; border: 1px solid var(--divider); color: var(--text-primary); font-weight: 600; }
.trust-icon { width: 18px; height: 18px; display: inline-flex; align-items: center; justify-content: center; }
@media (min-width: 860px) { .trust-inner { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Features (compact grid) */
.feature-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.feature-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-4); padding: 14px; box-shadow: var(--shadow-1); display: flex; flex-direction: column; height: 100%; }
.feature-card img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--radius-3); margin-bottom: 10px; }
.feature-text h3 { margin: 2px 0 6px; font-size: 20px; letter-spacing: -0.01em; }
.feature-text p { margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.45; }
@media (min-width: 720px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } .feature-card img { height: 140px; } }

.how { background: var(--surface); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.how-inner { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: center; }
.how ol { margin: 0; padding-left: 20px; }
.how li { margin: 8px 0; color: var(--text-secondary); }
.how img { width: 100%; border-radius: var(--radius-4); box-shadow: var(--shadow-1); }
@media (min-width: 980px) { .how-inner { grid-template-columns: 1fr 1fr; } }

.pricing h2 { font-size: 32px; letter-spacing: -0.02em; margin: 0 0 16px; }
/* FAQ heading slightly smaller for better hierarchy */
.faq h2 { font-size: 28px; letter-spacing: -0.01em; margin: 0 0 12px; }
.pricing-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.p-card { background: white; border: 1px solid var(--border); border-radius: var(--radius-4); padding: 20px; box-shadow: var(--shadow-1); }
.p-card--highlight { border-color: var(--brand); outline: 3px solid rgba(78,145,161,0.12); }
.price { font-size: 36px; margin: 8px 0 12px; }
.p-card ul { margin: 0 0 16px; padding-left: 18px; color: var(--text-secondary); }
@media (min-width: 800px) { .pricing-cards { grid-template-columns: 1fr 1fr; } }

/* FAQ accordion — compact, accessible, and tidy */
.faq details { background: white; border: 1px solid var(--divider); border-radius: var(--radius-3); padding: 0; margin-bottom: 10px; overflow: hidden; }
.faq details:hover { border-color: var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; font-weight: 600; font-size: 16px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '▾'; color: var(--text-secondary); transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(180deg); }
.faq .faq-body { padding: 0 16px 14px 16px; border-top: 1px solid var(--divider); }
.faq .faq-body p { color: var(--text-secondary); margin: 10px 0 0; font-size: 15px; line-height: 1.55; }

.site-footer { padding: 32px 0; background: var(--surface); border-top: 1px solid var(--divider); }
.footer-inner { display: grid; gap: 10px; align-items: center; justify-items: center; text-align: center; }
.brand-row { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.footer-inner .links { display: flex; gap: 14px; }
.footer-inner a { color: var(--text-secondary); text-decoration: none; line-height: 1.6; display: inline-block; padding: 4px 0; }
.footer-inner .links a:hover { color: var(--text-primary); text-decoration: underline; }
.fineprint { color: var(--muted); font-size: 12px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Download / store badges */
.download { background: linear-gradient(180deg, rgba(78,145,161,0.06), rgba(102,102,149,0.04)); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
.download-title { margin: 0 0 12px; font-size: 28px; letter-spacing: -0.01em; text-align: center; }
.store-badges { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; }
.store-badge img { display: block; height: 54px; width: auto; }
.store-badge { display: inline-flex; border-radius: 12px; overflow: hidden; }
