/* The site around the studio: landing, sign in, account, legal pages. */
:root {
  --bg: #0b0c10;
  --bg-2: #101217;
  --panel: #15171e;
  --panel-2: #1b1e27;
  --line: #252935;
  --line-2: #323848;
  --text: #eef0f5;
  --dim: #a0a6b8;
  --faint: #6f7588;
  --accent: #7c5cff;
  --accent-hi: #9479ff;
  --pink: #ff5fa2;
  --ok: #3ddc97;
  --warn: #ffcf6b;
  --bad: #ff7a8f;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, video { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--panel-2); color: var(--text); font: 600 15px/1.2 var(--font);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { border-color: #46506a; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 30px #7c5cff55; }
.btn.primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn.ghost { background: transparent; }
.btn.big { padding: 15px 24px; font-size: 16px; border-radius: 12px; }
.btn.small { padding: 8px 12px; font-size: 14px; }
.btn.danger { color: var(--bad); }
.btn.block { width: 100%; }

/* ----------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(150%) blur(14px); -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid #ffffff0d;
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 700 17px/1 var(--display); text-decoration: none; letter-spacing: -0.01em; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px; position: relative; flex: none;
  background: conic-gradient(from 210deg, #7c5cff, #ff5fa2, #ffb36b, #7c5cff);
  box-shadow: 0 4px 16px #7c5cff66;
}
.logo-mark::after {
  content: ''; position: absolute; left: 9px; top: 5px; width: 10px; height: 18px;
  border-radius: 3px; border: 2px solid #fff; background: #ffffff22;
}
.nav { display: flex; gap: 22px; margin-right: auto; }
.nav a { color: var(--dim); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; gap: 10px; align-items: center; }
@media (max-width: 760px) {
  .nav { display: none; }
  .header-actions { margin-left: auto; }
  .header-actions .hide-small { display: none; }
}

/* ------------------------------------------------------------------- hero */
.hero { position: relative; padding: 88px 0 40px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -40% -10% auto; height: 900px; pointer-events: none;
  background:
    radial-gradient(40% 35% at 30% 30%, #7c5cff40, transparent 70%),
    radial-gradient(35% 30% at 72% 26%, #ff5fa233, transparent 70%),
    radial-gradient(30% 30% at 55% 60%, #3fe0d01f, transparent 70%);
}
.hero .wrap { position: relative; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: #ffffff0d; border: 1px solid #ffffff14; color: var(--dim); font-size: 14px;
}
.eyebrow b { color: var(--text); font-weight: 600; }
.hero h1 { font-size: clamp(38px, 7vw, 76px); margin: 22px auto 0; max-width: 20ch; font-weight: 800; text-wrap: balance; }
.grad { background: linear-gradient(100deg, #b7a6ff, #ff8cc0 55%, #ffc48a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: clamp(17px, 2.2vw, 20px); color: var(--dim); max-width: 640px; margin: 22px auto 0; }
.hero .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero .fine { color: var(--faint); font-size: 14px; margin-top: 14px; }
.showcase {
  margin: 56px auto 0; max-width: 1040px; border-radius: 18px; overflow: hidden; position: relative;
  border: 1px solid #ffffff17; background: #000; aspect-ratio: 16 / 9;
  box-shadow: 0 40px 120px #000a, 0 0 0 1px #ffffff08, 0 0 120px #7c5cff22;
}
.showcase video, .showcase img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------- sections */
section.block { padding: 96px 0; }
section.block.tight { padding: 64px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; text-wrap: balance; }
.section-head p { color: var(--dim); margin-top: 14px; font-size: 18px; }
.kicker { color: var(--accent-hi); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; display: block; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: #7c5cff22; color: var(--accent-hi); font-weight: 800; margin-bottom: 16px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--dim); font-size: 15px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px;
  background: #ffffff0a; border: 1px solid #ffffff12; color: #c9bcff;
}
.feature .icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { color: var(--dim); font-size: 15px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .features, .steps { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------- comparison */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15px; }
.compare th, .compare td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--panel-2); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--dim); }
.compare thead th.us { color: var(--text); }
.compare td.us { background: #7c5cff10; font-weight: 600; }
.compare .yes { color: var(--ok); }
.compare .no { color: var(--faint); }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }

/* ---------------------------------------------------------------- pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 20px; justify-content: center; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; }
.plan.pro { border-color: #7c5cff88; background: linear-gradient(180deg, #7c5cff1c, var(--panel) 45%); box-shadow: 0 20px 70px #7c5cff22; position: relative; }
.plan .tag { position: absolute; top: -12px; right: 24px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan h3 { font-size: 20px; }
.plan .price { font: 800 46px/1 var(--display); margin: 18px 0 4px; letter-spacing: -0.03em; }
.plan .price small { font-size: 16px; font-weight: 500; color: var(--dim); letter-spacing: 0; }
.plan .sub { color: var(--dim); font-size: 15px; min-height: 2.6em; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; font-size: 15px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: #3ddc9722 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%233ddc97' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E") center / 14px no-repeat; }
.plan li.muted { color: var(--faint); }
.plan li.muted::before { background: #ffffff0d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%236f7588' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 10h8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.plan .btn { margin-top: auto; }
.plan-note { text-align: center; color: var(--faint); font-size: 14px; margin-top: 22px; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* -------------------------------------------------------------------- faq */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--dim); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--dim); padding: 0 0 18px; font-size: 15px; }

.cta-band {
  text-align: center; padding: 64px 24px; border-radius: 24px; border: 1px solid #ffffff14;
  background: radial-gradient(60% 120% at 50% 0%, #7c5cff33, transparent 70%), var(--panel);
}
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; }
.cta-band p { color: var(--dim); margin: 14px auto 28px; max-width: 520px; }

/* ----------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--faint); font-size: 14px; margin-top: 40px; }
.site-footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 18px; margin-left: auto; flex-wrap: wrap; }
.site-footer a { text-decoration: none; color: var(--dim); }
.site-footer a:hover { color: var(--text); }

/* ------------------------------------------------- forms: auth and account */
.narrow-page { min-height: 100vh; display: flex; flex-direction: column; }
.narrow-page main { flex: 1; display: grid; place-items: center; padding: 40px 20px 60px; }
.card { width: min(420px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: 0 30px 90px #0008; }
.card h1 { font-size: 26px; font-weight: 800; }
.card .lead { color: var(--dim); margin-top: 8px; font-size: 15px; }
.field { display: grid; gap: 6px; margin-top: 18px; }
.field label { font-size: 14px; color: var(--dim); font-weight: 500; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--text); font: 16px var(--font);
}
.field input:focus { outline: 2px solid #7c5cff88; outline-offset: 1px; border-color: var(--accent); }
.field .hint { color: var(--faint); font-size: 13px; }
.form-error { color: var(--bad); font-size: 14px; margin-top: 14px; min-height: 1.2em; }
.form-ok { color: var(--ok); font-size: 14px; margin-top: 14px; }
.card .btn.block { margin-top: 22px; }
.switch { margin-top: 20px; color: var(--dim); font-size: 14px; text-align: center; }
.switch a { color: var(--text); font-weight: 600; }
.row-between { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.row-between a { font-size: 13px; color: var(--dim); }
.pro-note { margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: #7c5cff18; border: 1px solid #7c5cff44; font-size: 14px; color: #d8d0ff; }

.account { width: min(720px, 100%); display: grid; gap: 18px; }
.account .card { width: 100%; }
.account h2 { font-size: 18px; margin-bottom: 4px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .03em; vertical-align: middle; }
.badge.pro { background: linear-gradient(100deg, #7c5cff, #ff5fa2); color: #fff; }
.badge.free { background: #ffffff12; color: var(--dim); }
.plan-line { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.plan-line .status { color: var(--dim); font-size: 15px; }
.inline-form { display: grid; gap: 4px; }
.danger-zone { border-color: #ff7a8f33; }
.muted { color: var(--dim); }

/* ------------------------------------------------------------------ legal */
.legal { max-width: 760px; margin: 0 auto; padding: 60px 0 40px; }
.legal h1 { font-size: 40px; font-weight: 800; }
.legal .updated { color: var(--faint); margin: 10px 0 34px; }
.legal h2 { font-size: 21px; margin: 34px 0 10px; }
.legal p, .legal li { color: #c9cddb; font-size: 16px; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; display: grid; gap: 6px; }

.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.center-page h1 { font-size: 64px; }
.center-page p { color: var(--dim); margin: 12px 0 26px; }
.nowrap { white-space: nowrap; }
