/* StreamPlan Studio · official website. Colours as in the app. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(fonts/Inter-Regular.ttf) format('truetype'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(fonts/Inter-SemiBold.ttf) format('truetype'); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(fonts/Inter-Bold.ttf) format('truetype'); }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url(fonts/Inter-ExtraBold.ttf) format('truetype'); }

:root {
  --bg: #0B0B18; --bg2: #12111F; --card: #171629; --card2: #211B36; --border: #302849;
  --primary: #8B35F5; --violet: #A855F7; --magenta: #C13CFF; --cyan: #21D4E8; --green: #22C55E;
  --text: #FFFFFF; --muted: #A5A4B5; --faint: #6E6C82;
  --radius: 22px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--violet); }
h1, h2, h3 { line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.glow { position: absolute; inset: -200px 0 auto; height: 900px; pointer-events: none;
  background: radial-gradient(600px 380px at 50% 30%, rgba(139, 53, 245, .28), transparent 70%); }

/* Header */
header { position: sticky; top: 0; z-index: 10; background: rgba(11, 11, 24, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(48, 40, 73, .6); }
header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 17px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
nav { display: flex; gap: 22px; margin-left: auto; }
nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
nav a:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--primary); color: #fff; font-weight: 700; text-decoration: none; box-shadow: 0 8px 30px rgba(139, 53, 245, .35); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 36px rgba(139, 53, 245, .5); }
.btn.ghost { background: var(--card); border: 1px solid var(--border); box-shadow: none; }
.btn.small { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* Hero */
.hero { position: relative; padding: 72px 0 40px; text-align: center; overflow: hidden; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); color: var(--muted); font-size: 14px; font-weight: 600; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 10px var(--violet); }
.hero h1 { font-size: clamp(38px, 7vw, 74px); font-weight: 800; margin: 22px auto 0; max-width: 920px; }
.hero h1 em { font-style: normal; color: var(--violet); }
.hero .lead { color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); max-width: 640px; margin: 20px auto 0; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.hint { color: var(--faint); font-size: 14px; margin-top: 14px; }

.phones { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 28px; margin-top: 56px; }
.phone { width: 270px; flex: none; border-radius: 38px; padding: 9px; background: #1c1a2e; border: 1px solid var(--border); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.phone img { border-radius: 30px; aspect-ratio: 10 / 16; object-fit: cover; object-position: top; width: 100%; }
.phone.mid { width: 300px; box-shadow: 0 30px 90px rgba(139, 53, 245, .35); }
.phone figcaption, .shot figcaption { margin-top: 14px; color: var(--muted); font-size: 14px; text-align: center; }
.phone figcaption b, .shot figcaption b { color: var(--text); }
figure { margin: 0; }

/* Sections */
section { padding: 88px 0; }
.eyebrow { color: var(--violet); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.head { max-width: 680px; margin-bottom: 44px; }
.head h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; margin-top: 10px; }
.head p { color: var(--muted); font-size: 18px; margin-top: 14px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--card2); color: var(--violet); font-weight: 800; margin-bottom: 16px; }
.step h3 { font-size: 20px; }
.step p { color: var(--muted); margin-top: 8px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.f { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; min-width: 0; }
.f.hi { background: linear-gradient(160deg, #241a42, var(--card) 70%); border-color: #46306f; }
.ic { width: 44px; height: 44px; border-radius: 13px; background: var(--card2); display: grid; place-items: center; margin-bottom: 16px; }
.ic svg { width: 22px; height: 22px; fill: none; stroke: var(--violet); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.f h3 { font-size: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.f p { color: var(--muted); margin-top: 8px; font-size: 15px; }
.new { font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 3px 8px; border-radius: 999px; background: rgba(168, 85, 247, .18); color: var(--violet); }

/* Feature rows */
.row { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.row.flip .text { order: 2; }
.list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.list li::before { content: ''; width: 24px; height: 24px; margin-top: 2px; border-radius: 8px; background: rgba(139, 53, 245, .2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A855F7' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 15px no-repeat; }
.list b { display: block; }
.list span { color: var(--muted); font-size: 15px; }
.shots { display: flex; gap: 20px; justify-content: center; }
.shots .phone { width: 250px; }
.shots .phone.lower { margin-top: 60px; }

/* Everywhere */
.desk { border-radius: 18px; border: 1px solid var(--border); overflow: hidden; box-shadow: 0 30px 90px rgba(0, 0, 0, .6), 0 0 0 8px #15142a; }
.bar { height: 30px; background: #15142a; display: flex; align-items: center; gap: 7px; padding: 0 14px; }
.bar i { width: 10px; height: 10px; border-radius: 50%; background: #302849; }
.devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.devices ol { margin: 10px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
details { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 0 22px; }
summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--violet); font-size: 22px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { color: var(--muted); padding-bottom: 20px; }

.final { text-align: center; background: linear-gradient(160deg, #2a1a52, #171629 65%); border: 1px solid #46306f; border-radius: 30px; padding: 64px 24px; }
.final h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; }
.final p { color: var(--muted); margin: 14px auto 0; max-width: 520px; font-size: 18px; }

footer { border-top: 1px solid var(--border); padding: 32px 0 calc(32px + env(safe-area-inset-bottom)); color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
footer .sp { margin-left: auto; }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 0 88px; }
.legal h1 { font-size: 40px; font-weight: 800; }
.legal h2 { font-size: 21px; margin-top: 36px; }
.legal p, .legal li { color: var(--muted); margin-top: 10px; }
.legal .todo { margin-top: 24px; padding: 16px 18px; border-radius: 14px; border: 1px solid #6b4a14; background: #2a1f0e; color: #f5c46b; }

@media (max-width: 960px) {
  .grid, .devices { grid-template-columns: repeat(2, 1fr); }
  .row { grid-template-columns: 1fr; gap: 40px; }
  .row.flip .text { order: 0; }
  .phone.side { display: none; }
}
@media (max-width: 680px) {
  nav { display: none; }
  header .btn { margin-left: auto; }
  section { padding: 64px 0; }
  .hero { padding-top: 48px; }
  .steps, .grid, .devices { grid-template-columns: 1fr; }
  .phone.mid { width: min(280px, 80vw); }
  .shots .phone { width: min(200px, 44vw); }
  .shots .phone.lower { margin-top: 36px; }
  .shots { gap: 12px; }
  footer .sp { margin-left: 0; }
}
