/* BasisVideos website. Same tokens as the app (web/app.css); light and dark follow the system. */
:root {
  --bg: #f7f7f8;
  --panel: #ffffff;
  --alt: #f0f1f3;
  --line: #e7e7ea;
  --text: #16171a;
  --muted: #5f636c;
  --soft: #f0f1f3;
  --accent: #4f46e5;
  --accent-text: #ffffff;
  --gold: #d99a0b;
  --ok: #0f9d6b;
  --bubble: #eef0ff;
  --shadow: 0 1px 2px rgba(16, 17, 20, .06), 0 4px 16px rgba(16, 17, 20, .05);
  --shadow-lg: 0 2px 6px rgba(16, 17, 20, .08), 0 24px 60px rgba(16, 17, 20, .16);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1013;
    --panel: #17181c;
    --alt: #131417;
    --line: #26282e;
    --text: #ececef;
    --muted: #9a9ea8;
    --soft: #1e2026;
    --accent: #7c74ff;
    --accent-text: #0f1013;
    --bubble: #232445;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .25);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .4), 0 24px 60px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.15; }
h2 { font-size: clamp(26px, 5vw, 36px); font-weight: 700; }
h3 { font-size: 17px; font-weight: 650; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--panel); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 8px 14px; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, opacity .15s; }
.btn:hover { background: var(--soft); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover { opacity: .9; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--text); background: var(--soft); }
.btn.lg { padding: 12px 20px; font-size: 16px; border-radius: 12px; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.top-in { display: flex; align-items: center; gap: 16px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand.sm { font-size: 15px; }
.brand.sm img { width: 22px; height: 22px; }
.nav { display: none; gap: 4px; margin-left: 12px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 550; padding: 6px 10px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: var(--soft); }
.top-cta { margin-left: auto; display: flex; gap: 6px; }
.top-cta .btn { padding: 7px 12px; font-size: 14px; }
@media (max-width: 420px) { .top-cta .primary { display: none; } .top-cta .ghost { border-color: var(--line); color: var(--text); } }
@media (min-width: 860px) { .nav { display: flex; } }

/* hero */
.hero { position: relative; overflow: hidden; padding: 48px 0 56px; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto; height: 120%; background: radial-gradient(50% 50% at 70% 40%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%), radial-gradient(40% 40% at 15% 10%, color-mix(in srgb, var(--gold) 10%, transparent), transparent 70%); pointer-events: none; }
.hero-in { position: relative; display: grid; gap: 40px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 650; font-size: 14px; margin-bottom: 14px; }
h1 { font-size: clamp(40px, 9vw, 68px); font-weight: 750; letter-spacing: -.035em; line-height: 1.02; }
.lead { color: var(--muted); font-size: clamp(17px, 2.3vw, 20px); margin-top: 18px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-media { position: relative; padding: 0 12% 18% 0; }
.frame { margin: 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); background: #1b2140; }
.frame.wide { border-radius: 14px; }
.frame.phone { position: absolute; right: 0; bottom: 0; width: 34%; border-radius: 20px; border: 5px solid #0d0e11; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .06); }
@media (min-width: 960px) {
  .hero { padding: 72px 0 48px; }
  .hero-in { grid-template-columns: 1fr 1.05fr; gap: 56px; }
}

/* sections */
.sec { padding: 64px 0; }
.sec.alt { background: var(--alt); border-block: 1px solid var(--line); }
.sec-head { max-width: 640px; margin-bottom: 32px; }
.sec-head p, .lead-s { color: var(--muted); margin-top: 12px; font-size: 17px; }
.split { display: grid; gap: 40px; }
@media (min-width: 900px) { .sec { padding: 96px 0; } .split { grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; } }

/* steps */
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 20px; }
.steps li { display: flex; gap: 16px; }
.steps .num { width: 34px; height: 34px; border-radius: 10px; background: var(--bubble); color: var(--accent); font-weight: 750; display: grid; place-items: center; flex: none; }
.steps p { color: var(--muted); margin-top: 3px; }

/* chat mock (mirrors the app's chat cards) */
.chat { display: flex; flex-direction: column; gap: 12px; background: var(--bg); border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow); }
.bubble { align-self: flex-end; background: var(--bubble); padding: 10px 14px; border-radius: 16px 16px 4px 16px; max-width: 85%; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.card-head .kind { font-weight: 650; color: var(--text); }
.chip { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 1px 9px; }
.ok { color: var(--ok); font-weight: 600; }
.script { line-height: 1.6; font-size: 15px; }
.wave { display: flex; align-items: center; gap: 3px; height: 32px; margin: 4px 0 12px; }
.wave i { flex: 1; background: color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 2px; height: 30%; }
.wave i:nth-child(3n) { height: 70%; } .wave i:nth-child(4n+1) { height: 50%; } .wave i:nth-child(5n+2) { height: 90%; } .wave i:nth-child(7n) { height: 40%; }
.fake-btn { display: inline-block; background: var(--accent); color: var(--accent-text); border-radius: 10px; padding: 8px 14px; font-weight: 600; font-size: 14px; }
.progress { height: 6px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; width: 100%; background: var(--ok); border-radius: 99px; }

/* formats */
.formats { display: grid; gap: 14px; }
.shorts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.shorts img, .formats .long { border-radius: 14px; box-shadow: var(--shadow); background: #1b2140; }
@media (min-width: 900px) { .formats { grid-template-columns: 1fr 1.25fr; align-items: center; gap: 20px; } }

/* assets */
.style-title { margin: 36px 0 14px; font-size: 15px; color: var(--muted); font-weight: 600; }
.style-title:first-of-type { margin-top: 0; }
.tag { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--bubble); color: var(--accent); }
.tag.dark { background: #1d1f25; color: #dfe2e8; }
.assets, .bgs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.assets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.assets li { aspect-ratio: 1; min-width: 0; padding: 12%; border-radius: var(--radius); background: #dfe4f3; border: 1px solid var(--line); }
.assets.three li { background: radial-gradient(circle at 50% 40%, #2a2d36, #121318); border-color: #22242b; }
.assets img { width: 100%; height: 100%; object-fit: contain; }
.bgs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bgs img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 45%; border-radius: 12px; border: 1px solid var(--line); background: #1b2140; }
@media (prefers-color-scheme: dark) { .assets li { background: #1e2340; } }
@media (min-width: 640px) { .bgs { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 900px) { .assets { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.feats { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 20px; }
.feats li, .key-list li { display: flex; gap: 14px; }
.feats svg { color: var(--accent); margin-top: 2px; }
.feats strong, .key-list strong { display: block; font-weight: 650; }
.feats span, .key-list span { color: var(--muted); font-size: 15px; }
@media (min-width: 760px) { .feats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }

/* plans */
.plans { display: grid; gap: 16px; max-width: 820px; }
@media (min-width: 720px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { display: flex; flex-direction: column; gap: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.plan h3 { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.plan.pro { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: var(--shadow), 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.badge { font-size: 11px; font-weight: 750; letter-spacing: .02em; padding: 3px 8px; border-radius: 99px; background: linear-gradient(135deg, var(--accent), #f5b80b); color: #fff; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ''; position: absolute; left: 2px; top: .35em; width: 14px; height: 7px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.plan .btn { align-self: flex-start; }

/* keys */
.key-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.key-list li { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); align-items: flex-start; }
.key-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--bubble); color: var(--accent); display: grid; place-items: center; flex: none; }

/* faq */
.faq { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 18px 16px; color: var(--muted); }

/* end + footer */
.end-in { display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; }
.foot { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.foot nav { display: flex; gap: 18px; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--text); text-decoration: underline; }

/* legal stubs */
.legal { padding: 56px 0 80px; }
.legal h1 { font-size: clamp(30px, 6vw, 40px); margin-bottom: 16px; }
.legal p, .legal li { color: var(--muted); }
.legal h2 { font-size: 20px; margin: 32px 0 8px; }
.legal h3 { margin: 20px 0 6px; }
.legal ul { padding-left: 20px; }
.legal a { text-decoration: underline; }
