/* Framelyo public landing page. */
:root {
  --ink: #1d1530; --muted: #625b73; --line: #e7e3ef; --bg: #ffffff; --soft: #f6f3fd;
  --brand: #6d28d9; --brand-dark: #5b21b6; --brand-soft: #efe8fe; --error: #c0261b;
  --radius: 14px; --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; font-size: 16px; }
a { color: var(--brand); }
h1, h2, h3, p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; font-size: 20px; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.mark { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 19px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 0; background: var(--brand); color: #fff; font: inherit; font-weight: 650; text-decoration: none; cursor: pointer; transition: background .15s; }
.btn:hover { background: var(--brand-dark); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }

.nav { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px max(16px, calc((100% - 1160px) / 2)); background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; }
.nav nav a.btn { color: #fff; }

.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; max-width: 1160px; margin: 0 auto; padding: 72px 16px 40px; }
.pill { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-weight: 650; font-size: 14px; margin-bottom: 20px; }
h1 { font-size: clamp(34px, 5.4vw, 62px); line-height: 1.06; letter-spacing: -.035em; font-weight: 780; text-wrap: balance; }
h1 span { color: var(--brand); }
.lead { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 54ch; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 550; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: 0 24px 60px rgba(76, 29, 149, .14); }
.signup h2 { font-size: 24px; letter-spacing: -.02em; }
.signup > .muted { margin: 6px 0 18px; }
.signup form { display: grid; gap: 8px; }
.signup label { font-weight: 600; font-size: 14px; margin-top: 6px; }
.signup input[type="email"], .signup input[type="password"] { width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid #d6d1e0; border-radius: 10px; font: inherit; }
.signup .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 450; color: var(--muted); margin: 8px 0 2px; }
.signup .check input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--brand); flex-shrink: 0; }
.signup .small { margin-top: 14px; text-align: center; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.error { color: var(--error); font-size: 14px; min-height: 1.2em; }

.studio-peek { max-width: 1160px; margin: 0 auto; padding: 8px 16px 0; }
.peek-window { border-radius: 18px; border: 1px solid var(--line); background: var(--soft); overflow: hidden; }
.peek-bar { display: flex; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fff; }
.peek-bar span { width: 11px; height: 11px; border-radius: 50%; background: #e2dcec; }
.peek-body { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; padding: 32px; }
.peek-script { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.peek-label { font-weight: 650; font-size: 14px; margin-bottom: 8px; }
.peek-text { color: var(--muted); }
.peek-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.peek-chips span { padding: 4px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand-dark); font-size: 13px; font-weight: 600; }
.peek-arrow { width: 28px; height: 28px; color: var(--brand); }
.peek-arrow svg, .peek-play svg { width: 100%; height: 100%; }
.peek-video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; color: #fff; background: radial-gradient(circle at 25% 30%, #f472b6 0, transparent 38%), radial-gradient(circle at 75% 65%, #38bdf8 0, transparent 40%), linear-gradient(135deg, #1e1b4b, #4c1d95 55%, #0f172a); display: grid; place-items: center; }
.peek-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.peek-play { position: relative; z-index: 2; width: 64px; height: 64px; padding: 20px 18px 20px 22px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: var(--brand); cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .15s; }
.peek-play:hover { transform: scale(1.08); }
.peek-play[hidden] { display: none; }
.peek-progress { position: absolute; left: 16px; right: 16px; bottom: 34px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.peek-progress i { display: block; width: 0; height: 100%; background: #fff; transition: width .12s linear; }
.peek-status { position: absolute; z-index: 2; left: 16px; bottom: 10px; font-size: 13px; font-weight: 650; text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
.peek-video.is-done .peek-progress, .peek-video.is-playing .peek-status { display: none; }

.section { max-width: 1160px; margin: 0 auto; padding: 72px 16px 0; }
.section > h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -.03em; text-align: center; margin-bottom: 12px; text-wrap: balance; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: step; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 16px; }
.steps p { color: var(--muted); margin-top: 8px; }
.features .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.features article { padding: 24px; border-radius: var(--radius); background: var(--soft); }
.features h3 { font-size: 18px; }
.features p { color: var(--muted); margin-top: 6px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 36px; }
.plan { display: flex; flex-direction: column; gap: 16px; padding: 28px; border: 1px solid var(--line); border-radius: 18px; }
.plan.featured { border: 2px solid var(--brand); box-shadow: 0 18px 40px rgba(76, 29, 149, .12); }
.plan .top { display: flex; justify-content: space-between; align-items: center; }
.plan h3 { font-size: 20px; }
.plan .tag { font-size: 12px; font-weight: 700; color: var(--brand-dark); background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; }
.price { font-size: 44px; font-weight: 780; letter-spacing: -.04em; }
.price small { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); }
.plan li { position: relative; padding-left: 26px; }
.plan li::before { content: ""; position: absolute; left: 0; top: 4px; width: 17px; height: 17px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plan .btn { margin-top: auto; }

.faq details { max-width: 760px; margin: 0 auto; border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 17px; }
.faq details p { color: var(--muted); margin-top: 10px; }
.final { text-align: center; padding-bottom: 72px; }
.final p { color: var(--muted); margin: 8px 0 24px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; padding: 32px max(16px, calc((100% - 1160px) / 2)); border-top: 1px solid var(--line); }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot nav a { color: var(--muted); text-decoration: none; font-size: 14px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 32px 16px 28px; }
  .section { padding-top: 48px; }
  .studio-peek { padding-top: 20px; }
  .steps, .plans, .features .grid { margin-top: 24px; }
  .final { padding-bottom: 56px; }
  .lead { font-size: 17px; }
  .steps, .features .grid { grid-template-columns: 1fr; }
  .peek-body { grid-template-columns: 1fr; padding: 18px; }
  .peek-arrow { transform: rotate(90deg); justify-self: center; }
  .nav nav a:not(.btn):not(.nav-signin) { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
