/* Shared stylesheet for every app site built from this template.
   Per-app colours arrive as CSS variables in each page's <style> block (see build.py). */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: #F4F2FF;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.gold { color: var(--gold); }
.muted { color: rgba(244, 242, 255, 0.66); }

/* Ambient brand glow behind everything. */
.glow {
  position: fixed; inset: -20vh -20vw auto; height: 120vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vw 40vw at 20% 10%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 70%),
    radial-gradient(38vw 38vw at 85% 20%, color-mix(in srgb, var(--accent-3) 35%, transparent), transparent 70%),
    radial-gradient(50vw 40vw at 50% 70%, color-mix(in srgb, var(--accent-2) 30%, transparent), transparent 70%);
  filter: blur(20px);
}

/* Header */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px);
       background: color-mix(in srgb, var(--bg) 70%, transparent); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 14px rgba(0,0,0,0.35); }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav-links a { text-decoration: none; color: rgba(244,242,255,0.75); }
.nav-links a:hover { color: #fff; }
.nav-badge img { height: 36px; width: auto; }
@media (max-width: 720px) { .nav-links a:not(.nav-badge) { display: none; } }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.kicker { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
          color: var(--accent-3); margin-bottom: 18px; }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.04; letter-spacing: -0.03em; margin: 0 0 22px; font-weight: 800; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: rgba(244,242,255,0.78); max-width: 34em; margin: 0 0 28px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.badge img { height: 56px; width: auto; transition: transform .15s ease; }
.badge:hover img { transform: translateY(-2px); }
.cta-note { font-size: 14px; color: rgba(244,242,255,0.6); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; padding: 0; list-style: none; }
.chips li { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
            background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); }
.hero-art { position: relative; }
.hero-art img { width: 100%; max-height: min(640px, 80vh); object-fit: cover; border-radius: 32px; box-shadow: 0 40px 120px -20px color-mix(in srgb, var(--accent) 60%, transparent); }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 460px; margin-inline: auto; }
}

/* Sections */
section { padding: 72px 0; }
h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 14px; font-weight: 800; }
.section-lead { font-size: 18px; color: rgba(244,242,255,0.7); margin: 0 0 40px; max-width: 40em; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { padding: 28px; border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,0.075), rgba(255,255,255,0.03));
        border: 1px solid rgba(255,255,255,0.1); }
.card .emoji { font-size: 34px; line-height: 1; margin-bottom: 16px; }
.card h3 { margin: 0 0 8px; font-size: 20px; }
.card p { margin: 0; color: rgba(244,242,255,0.72); font-size: 16px; }

/* Screenshot gallery: horizontal scroll-snap, no JavaScript. */
.gallery { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 20px 26px;
           margin-inline: calc((100vw - min(1120px, 100vw - 40px)) / -2); padding-inline: calc((100vw - min(1120px, 100vw - 40px)) / 2);
           scrollbar-width: thin; }
.gallery img { flex: 0 0 auto; width: clamp(200px, 22vw, 270px); height: auto; border-radius: 26px; scroll-snap-align: center;
               box-shadow: 0 24px 60px -18px rgba(0,0,0,0.6); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; max-width: 820px; }
.plan { padding: 32px; border-radius: 28px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); }
.plan.featured { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 38%, transparent), color-mix(in srgb, var(--accent-3) 18%, transparent));
                 border-color: color-mix(in srgb, var(--accent-3) 55%, transparent); }
.plan h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: 0.02em; }
.price { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; }
.price small { font-size: 16px; font-weight: 600; color: rgba(244,242,255,0.65); margin-left: 6px; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 0; }
.plan li { padding: 7px 0 7px 28px; position: relative; color: rgba(244,242,255,0.85); }
.plan li::before { content: ""; position: absolute; left: 0; top: 12px; width: 16px; height: 16px; border-radius: 50%;
                   background: var(--accent-3); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' stroke='black' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
                   mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' stroke='black' stroke-width='2.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.footnote { font-size: 13px; color: rgba(244,242,255,0.5); margin-top: 18px; }

/* FAQ: native <details>, no JavaScript. */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid rgba(255,255,255,0.1); padding: 18px 0; }
.faq summary { cursor: pointer; font-size: 18px; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--accent-3); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 12px 0 0; color: rgba(244,242,255,0.75); }
.faq a { color: var(--accent-3); }

/* Final call to action */
.final { text-align: center; }
.final .icon { width: 108px; height: 108px; border-radius: 26px; margin: 0 auto 26px; box-shadow: 0 24px 70px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.final .cta { justify-content: center; }

/* Legal / support pages */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); }
.doc h2 { font-size: 24px; margin: 38px 0 10px; }
.doc p, .doc li { color: rgba(244,242,255,0.8); font-size: 17px; }
.doc a { color: var(--accent-3); }
.doc .updated { color: rgba(244,242,255,0.5); font-size: 15px; margin-top: -8px; }
.mail { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; padding: 16px 22px; border-radius: 18px;
        background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.14); text-decoration: none; }

/* Footer */
footer { border-top: 1px solid rgba(255,255,255,0.08); padding: 34px 0 46px; font-size: 14px; color: rgba(244,242,255,0.55); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; gap: 20px; }
footer a { text-decoration: none; }
footer a:hover { color: #fff; }
