/* Appfront seller site */

:root {
  --accent: #6d7cff;
  --accent-hot: #8b96ff;
  --bg: #0b0b0e;
  --bg-raised: #141419;
  --bg-inset: #1c1c24;
  --text: #f2f2f5;
  --text-2: #a4a4ae;
  --text-3: #6f6f7a;
  --border: rgba(255,255,255,.09);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1060px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-hot); text-decoration: none; }
code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .92em;
  background: var(--bg-inset);
  padding: 2px 6px;
  border-radius: 6px;
}

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

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(11,11,14,.75);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  height: 58px; display: flex; align-items: center; gap: 26px;
}
.brand { font-weight: 700; font-size: 17px; color: var(--text); margin-right: auto; display: flex; gap: 9px; align-items: center; }
.brand-mark { color: var(--accent); font-size: 14px; }
.nav-link { color: var(--text-2); font-size: 14px; font-weight: 500; }
.nav-link:hover { color: var(--text); }
.nav-buy {
  background: var(--accent); color: #fff; font-weight: 650; font-size: 14px;
  padding: 8px 18px; border-radius: 10px;
}
.nav-buy:hover { background: var(--accent-hot); }
@media (max-width: 640px) { .nav-link { display: none; } }

/* hero */
.hero {
  padding: clamp(60px, 9vw, 110px) 0 0;
  text-align: center;
  background:
    radial-gradient(700px 380px at 50% -80px, rgba(109,124,255,.16), transparent 70%);
}
.eyebrow {
  color: var(--accent-hot); font-weight: 650; font-size: 14px;
  text-transform: uppercase; letter-spacing: .08em; margin: 0 0 18px;
}
.hero h1 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", inherit;
  font-size: clamp(38px, 6.4vw, 66px);
  font-weight: 750; letter-spacing: -0.025em; line-height: 1.04; margin: 0 0 22px;
}
.hero .sub {
  font-size: clamp(16px, 2.2vw, 19px); color: var(--text-2);
  max-width: 640px; margin: 0 auto 34px;
}
.hero .sub strong { color: var(--text); }

.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }

.button-primary {
  display: inline-block; background: var(--accent); color: #fff;
  font-weight: 650; font-size: 17px; padding: 14px 30px; border-radius: 13px;
  transition: transform .15s ease, background .15s ease;
  box-shadow: 0 8px 28px rgba(109,124,255,.32);
}
.button-primary:hover { background: var(--accent-hot); transform: translateY(-1px); }
.button-big { font-size: 18px; padding: 16px 36px; }
.button-ghost {
  display: inline-block; color: var(--text); font-weight: 600; font-size: 16px;
  padding: 14px 24px; border-radius: 13px; border: 1px solid var(--border);
}
.button-ghost:hover { border-color: var(--text-3); }
.cta-note { font-size: 13.5px; color: var(--text-3); margin-top: 18px; }

/* browser frame w/ live demo */
.browser-frame {
  margin: clamp(44px, 6vw, 72px) auto 0;
  max-width: 980px;
  border-radius: 16px 16px 0 0;
  border: 1px solid var(--border);
  border-bottom: none;
  background: var(--bg-raised);
  box-shadow: 0 -1px 0 rgba(255,255,255,.04), 0 30px 80px rgba(0,0,0,.5);
  overflow: hidden;
  position: relative;
}
.browser-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; border-bottom: 1px solid var(--border);
}
.browser-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--bg-inset); }
.browser-bar .dot:first-child { background: #f66; }
.browser-bar .dot:nth-child(2) { background: #fb5; }
.browser-bar .dot:nth-child(3) { background: #4c4; }
.browser-url {
  margin: 0 auto; font-size: 12.5px; color: var(--text-3);
  background: var(--bg-inset); border-radius: 8px; padding: 4px 14px;
}
.browser-frame iframe {
  width: 100%; height: clamp(380px, 48vw, 620px); border: 0; display: block;
  background: #0d0d0f;
}
.browser-cover { position: absolute; inset: 44px 0 0; }

/* strip */
.strip { border-block: 1px solid var(--border); background: var(--bg-raised); }
.strip-inner {
  display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center;
  justify-content: center; padding: 22px 24px; text-align: center;
}
.strip p { margin: 0; color: var(--text-2); font-size: 15px; }
.strip-fields { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.field {
  font-size: 13.5px; font-weight: 550; background: var(--bg-inset);
  border: 1px solid var(--border); padding: 6px 14px; border-radius: 999px;
}
.field b { color: var(--accent-hot); font-weight: 650; margin-left: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }

/* sections */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-alt { background: var(--bg-raised); border-block: 1px solid var(--border); }
.section h2 {
  text-align: center; font-size: clamp(28px, 4.4vw, 42px);
  font-weight: 720; letter-spacing: -0.02em; margin: 0 0 16px;
}
.section-lede { text-align: center; color: var(--text-2); max-width: 560px; margin: 0 auto 48px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; margin-top: 48px; }
.card {
  display: block; background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 24px; color: var(--text);
  transition: border-color .15s ease, transform .15s ease;
}
.section .card { background: var(--bg-raised); }
.section-alt .card { background: var(--bg); }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.card p { margin: 0 0 14px; font-size: 14.5px; color: var(--text-2); }
.card-link { font-size: 14px; font-weight: 600; color: var(--accent-hot); }
.card-plain { cursor: default; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 48px 0; }
.step { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px 24px; }
.step-num {
  display: inline-flex; width: 32px; height: 32px; border-radius: 10px;
  background: rgba(109,124,255,.16); color: var(--accent-hot);
  font-weight: 700; align-items: center; justify-content: center; margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 17px; }
.step p { margin: 0; font-size: 14.5px; color: var(--text-2); }

.code-peek {
  max-width: 640px; margin: 0 auto; background: #0d0d12;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 26px; overflow-x: auto;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 13.5px; line-height: 1.7; color: var(--text-2);
}
.code-peek code { background: none; padding: 0; }
.code-peek .s { color: #9ecbff; }
.code-peek .k { color: #ff9cac; }
.code-peek .c { color: #5b5b66; }

/* feature list */
.feature-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 4px 40px; margin-top: 44px; max-width: 880px; margin-inline: auto;
}
.feat { display: flex; flex-direction: column; padding: 14px 0; border-bottom: 1px solid var(--border); }
.feat b { font-size: 15.5px; font-weight: 650; }
.feat span { font-size: 14px; color: var(--text-2); }

/* pricing */
.pricing-wrap {
  display: grid; grid-template-columns: minmax(300px, 420px) minmax(260px, 380px);
  gap: 40px; justify-content: center; align-items: center;
}
@media (max-width: 760px) { .pricing-wrap { grid-template-columns: 1fr; } }
.price-card {
  background: var(--bg); border: 1px solid var(--accent);
  border-radius: 26px; padding: 38px 34px; text-align: center;
  box-shadow: 0 20px 60px rgba(109,124,255,.15);
}
.price-card h2 { margin: 0 0 6px; }
.price-sub { color: var(--text-2); margin: 0 0 22px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 28px; text-align: left; }
.price-card li { padding: 7px 0 7px 30px; position: relative; font-size: 15px; }
.price-card li::before { content: "✓"; position: absolute; left: 4px; color: var(--accent-hot); font-weight: 700; }
.price-note { font-size: 12.5px; color: var(--text-3); margin: 14px 0 0; }
.price-aside p { color: var(--text-2); font-size: 15px; }
.price-aside b { color: var(--text); }

/* faq */
#faq details {
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 12px; overflow: hidden;
}
#faq summary {
  cursor: pointer; list-style: none; padding: 18px 20px;
  font-weight: 600; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after { content: "+"; color: var(--text-3); font-size: 20px; }
#faq details[open] summary::after { content: "–"; }
#faq details p { padding: 0 20px 18px; margin: 0; color: var(--text-2); font-size: 15px; }

/* final cta */
.final-cta {
  text-align: center; padding: clamp(64px, 9vw, 110px) 0;
  background: radial-gradient(600px 300px at 50% 130%, rgba(109,124,255,.18), transparent 70%);
  border-top: 1px solid var(--border);
}
.final-cta h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 720; letter-spacing: -0.02em; margin: 0 0 28px; }

/* footer */
.footer { border-top: 1px solid var(--border); padding: 30px 0 44px; }
.footer-inner { display: flex; gap: 24px; align-items: center; font-size: 13.5px; color: var(--text-3); }
.footer-inner span { margin-right: auto; }
.footer-inner a { color: var(--text-2); }

/* ---------- worker-rendered pages (download / error) ---------- */

.dl-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.dl-card {
  max-width: 520px; background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: 26px; padding: 44px 40px; text-align: center;
}
.dl-emoji { font-size: 44px; margin-bottom: 10px; }
.dl-card h1 { font-size: 30px; letter-spacing: -0.02em; margin: 0 0 12px; }
.dl-card h2 { font-size: 17px; margin: 30px 0 10px; text-align: left; }
.dl-card p { color: var(--text-2); font-size: 15.5px; }
.dl-button {
  display: inline-block; background: var(--accent); color: #fff;
  font-weight: 650; font-size: 17px; padding: 14px 30px; border-radius: 13px; margin: 8px 0;
}
.dl-button:hover { background: var(--accent-hot); }
.dl-steps { text-align: left; color: var(--text-2); font-size: 14.5px; padding-left: 22px; }
.dl-steps li { margin-bottom: 8px; }
.dl-small { font-size: 13px; color: var(--text-3); }
.dl-link { font-weight: 600; }
