/* Riffle web app */
:root {
  --navy: #0b2540;
  --navy-2: #133a5e;
  --ink: #17212b;
  --muted: #5b6876;
  --line: #e3e8ee;
  --soft: #f5f7fa;
  --brand: #f2620f;
  --brand-dark: #d4520a;
  --ok: #15803d;
  --warn: #b45309;
  --bad: #b91c1c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11, 37, 64, .08);
  --font: "InterVar", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: #fff; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--navy); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid rgba(247, 148, 29, .55); outline-offset: 2px; }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.muted { color: var(--muted); }
.center { text-align: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark); margin-bottom: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font: 600 .95rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(242, 98, 15, .32); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--soft); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: #c6d0db; background: var(--soft); }
.btn-danger { background: #fff; color: var(--bad); border-color: #f3c7c7; }
.btn-danger:hover { background: #fef2f2; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { height: 36px; padding: 0 12px; font-size: .85rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { width: min(1160px, 100% - 40px); margin: 0 auto; height: 68px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand-mark svg { width: 32px; height: 32px; }
.brand-name { font-size: 1.1rem; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.brand-name b { font-weight: 800; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); background: var(--soft); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; margin-left: 8px; width: 42px; height: 42px; border: 0; background: transparent; border-radius: 8px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { width: 20px; height: 2px; background: var(--navy); border-radius: 2px; }
.account { position: relative; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; font-weight: 700; cursor: pointer; }
.menu { position: absolute; right: 0; top: 50px; width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: grid; }
.menu-head { padding: 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; }
.menu-head span { color: var(--muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; }
.menu a, .menu button { text-align: left; padding: 10px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--soft); }

/* Hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, rgba(247, 148, 29, .18), transparent 60%), linear-gradient(180deg, #f8fafc, #fff); padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 560px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 16px; }
.checks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .93rem; }
.checks li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 6px; }
.hero-visual { position: relative; }
.book-demo { position: relative; aspect-ratio: 16 / 10.5; perspective: 1800px; }
.book-demo .page { position: absolute; top: 0; bottom: 0; width: 50%; border-radius: 4px; background: #fff; box-shadow: var(--shadow), 0 0 0 1px var(--line); overflow: hidden; }
.book-demo .page.left { left: 0; border-radius: 10px 2px 2px 10px; }
.book-demo .page.right { right: 0; border-radius: 2px 10px 10px 2px; }
.book-demo .flip { right: 0; transform-origin: left center; animation: flip 5.5s ease-in-out infinite; z-index: 2; background: linear-gradient(90deg, #f3f5f8, #fff 30%); }
@keyframes flip { 0%, 25% { transform: rotateY(0); } 55%, 80% { transform: rotateY(-180deg); } 100% { transform: rotateY(-360deg); } }
.page-art { position: absolute; inset: 9% 9%; display: grid; gap: 7%; grid-template-rows: auto 1fr auto; }
.page-art .bar { height: 10px; border-radius: 6px; background: #e6ebf1; }
.page-art .bar.title { height: 18px; width: 70%; background: var(--navy); }
.page-art .img { border-radius: 8px; background: linear-gradient(135deg, var(--brand), #ffcf8a); }
.page-art .img.blue { background: linear-gradient(135deg, #1d4ed8, #7dd3fc); }
.page-art .lines { display: grid; gap: 8px; }
.hotspot-demo { position: absolute; right: 8%; bottom: 14%; padding: 6px 10px; border-radius: 6px; background: rgba(247, 148, 29, .15); outline: 2px solid rgba(247, 148, 29, .8); font-size: .75rem; font-weight: 700; color: var(--brand-dark); z-index: 3; }
.hero-badge { position: absolute; left: -14px; bottom: -18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 12px; padding: 10px 14px; display: flex; gap: 10px; align-items: center; font-size: .9rem; z-index: 4; }
.hero-badge b { color: var(--navy); display: block; }
.dot-live { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }

/* Trust */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; background: #fff; }
.trust .wrap { display: flex; align-items: center; justify-content: center; gap: 14px 34px; flex-wrap: wrap; color: var(--muted); font-size: .92rem; }
.trust strong { color: var(--navy); font-weight: 700; }

/* Sections */
.section { padding: 84px 0; }
.section.alt { background: var(--soft); }
.section-head { max-width: 680px; margin: 0 auto 42px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; position: relative; }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 800; margin-bottom: 14px; }
.step p { color: var(--muted); margin: 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.feature .ic { width: 42px; height: 42px; border-radius: 10px; background: #fff4e5; display: grid; place-items: center; margin-bottom: 12px; }
.feature .ic svg { width: 22px; height: 22px; stroke: var(--brand-dark); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature p { color: var(--muted); margin: 0; font-size: .95rem; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 880px; margin: 0 auto; }
.compare .col { border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); background: #fff; }
.compare .col.good { border-color: rgba(247, 148, 29, .5); box-shadow: 0 0 0 4px rgba(247, 148, 29, .08); }
.compare ul { margin: 0; padding-left: 18px; color: var(--muted); }
.compare li { margin: 6px 0; }

/* Pricing */
.price-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; max-width: 960px; margin: 0 auto; align-items: stretch; }
.price-card { background: #fff; border-radius: 18px; padding: 32px; border: 2px solid var(--brand); box-shadow: var(--shadow); position: relative; }
.price-card .ribbon { position: absolute; top: -13px; left: 28px; background: var(--brand); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 4px; }
.price .amount { font-size: 3.2rem; font-weight: 800; color: var(--navy); letter-spacing: -.03em; }
.price .was { color: var(--muted); text-decoration: line-through; font-size: 1.2rem; }
.price .per { color: var(--muted); }
.price-card ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 9px; }
.price-card li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 8px; }
.volume { background: var(--navy); color: #dbe6f2; border-radius: 18px; padding: 28px; }
.volume h3 { color: #fff; }
.volume table { width: 100%; border-collapse: collapse; margin: 12px 0 16px; }
.volume td { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.volume td:last-child { text-align: right; font-weight: 700; color: #fff; }
.volume .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; color: var(--navy); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; color: var(--brand-dark); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

.cta-band { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #dbe6f2; border-radius: 22px; padding: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 0 24px; background: #fff; margin-top: 40px; }
.footer-inner { width: min(1160px, 100% - 40px); margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-inner p { color: var(--muted); max-width: 420px; font-size: .92rem; margin-top: 10px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--navy); }
.footer-legal { width: min(1160px, 100% - 40px); margin: 24px auto 0; color: #8a96a3; font-size: .82rem; }
.brand-footer .brand-name { font-size: 1.05rem; }

/* Auth */
.auth { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: linear-gradient(160deg, var(--navy), #1b4a75); color: #dbe6f2; padding: 64px; display: flex; flex-direction: column; justify-content: center; }
.auth-side h2 { color: #fff; }
.auth-side .checks { color: #dbe6f2; flex-direction: column; font-size: 1rem; gap: 10px; }
.auth-side .checks li::before { color: var(--brand); }
.auth-main { display: grid; place-items: center; padding: 48px 24px; }
.auth-card { width: min(420px, 100%); }
.auth-card h1 { font-size: 2rem; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.form > *, .panel > *, .publish > *, .editor > * { min-width: 0; }
.field label { font-weight: 600; font-size: .9rem; color: var(--navy); }
.field .hint { font-size: .82rem; color: var(--muted); }
.input, .field input, .field select, .field textarea {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid #cfd8e2; border-radius: 10px;
  font: 400 1rem var(--font); color: var(--ink); background: #fff;
}
.field textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: 3px solid rgba(247, 148, 29, .2); }
.pw { position: relative; }
.pw button { position: absolute; right: 6px; top: 6px; height: 34px; padding: 0 10px; border: 0; background: var(--soft); border-radius: 8px; cursor: pointer; font: 600 .8rem var(--font); color: var(--muted); }
.form-error { background: #fef2f2; color: var(--bad); border: 1px solid #fecaca; border-radius: 10px; padding: 10px 12px; font-size: .92rem; }
.form-ok { background: #f0fdf4; color: var(--ok); border: 1px solid #bbf7d0; border-radius: 10px; padding: 10px 12px; font-size: .92rem; }
.form-foot { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 8px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); }
.check-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }

/* App shell */
.app-page { padding: 34px 0 60px; background: var(--soft); min-height: calc(100vh - 68px); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: 1.9rem; margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.grid-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.book-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.book-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.book-cover { aspect-ratio: 4 / 3.2; background: #e9eef4; display: grid; place-items: center; overflow: hidden; position: relative; }
.book-cover img { height: 92%; width: auto; box-shadow: 0 6px 16px rgba(0, 0, 0, .2); }
.book-cover .ph { color: #9aa7b4; font-weight: 600; font-size: .9rem; }
.book-body { padding: 14px 16px 16px; display: grid; gap: 6px; }
.book-body h3 { margin: 0; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.book-meta { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .85rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.done { background: #eff6ff; color: #1d4ed8; }
.pill.paid { background: #f0fdf4; color: var(--ok); }
.pill.work { background: #fff7ed; color: var(--warn); }
.pill.fail { background: #fef2f2; color: var(--bad); }
.progress { height: 8px; background: #e7ecf2; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #fbbf24); border-radius: 999px; transition: width .4s ease; }
.empty { text-align: center; padding: 60px 24px; }
.empty .big { width: 72px; height: 72px; border-radius: 18px; background: #fff4e5; display: grid; place-items: center; margin: 0 auto 16px; }
.empty .big svg { width: 34px; height: 34px; stroke: var(--brand-dark); fill: none; stroke-width: 2; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat b { display: block; font-size: 1.5rem; color: var(--navy); }
.stat span { color: var(--muted); font-size: .85rem; }
.banner { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 18px; border-radius: 12px; margin-bottom: 18px; border: 1px solid; }
.banner.ok { background: #f0fdf4; border-color: #bbf7d0; color: #14532d; }
.banner.info { background: #fff7ed; border-color: #fed7aa; color: #7c2d12; }
.banner.bad { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }

/* Upload */
.drop { border: 2px dashed #c6d0db; border-radius: 18px; background: #fff; padding: 48px 24px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.drag { border-color: var(--brand); background: #fffaf3; }
.drop .big { width: 64px; height: 64px; border-radius: 16px; background: #fff4e5; display: grid; place-items: center; margin: 0 auto 14px; }
.drop .big svg { width: 30px; height: 30px; stroke: var(--brand-dark); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drop strong { display: block; font-size: 1.15rem; color: var(--navy); margin-bottom: 4px; }
.file-chosen { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.file-chosen .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 20px; align-items: start; }
.side-note { display: grid; gap: 14px; }
.side-note .card h3 { margin-bottom: 8px; }
.side-note ol { margin: 0; padding-left: 18px; color: var(--muted); }

/* Workspace */
.ws-head { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 16px; }
.ws-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ws-title h1 { font-size: 1.6rem; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52vw; }
.back { color: var(--muted); text-decoration: none; font-size: .9rem; display: inline-block; margin-bottom: 8px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 12px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--brand); }
.preview-frame { width: 100%; height: min(72vh, 760px); border: 1px solid var(--line); border-radius: var(--radius); background: #2b2f36; }
.editor { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.stage { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.page-picker { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.page-picker select { height: 38px; border: 1px solid #cfd8e2; border-radius: 8px; padding: 0 10px; font: inherit; }
.canvas { position: relative; user-select: none; touch-action: none; cursor: crosshair; max-width: 640px; margin: 0 auto; background: #f1f4f8; border-radius: 4px; }
.canvas img { width: 100%; height: auto; pointer-events: none; border-radius: 4px; }
.box { position: absolute; border: 2px solid var(--brand); background: rgba(247, 148, 29, .18); border-radius: 3px; }
.box.saved { border-color: #1d4ed8; background: rgba(29, 78, 216, .14); }
.box.saved.video { border-color: #7c3aed; background: rgba(124, 58, 237, .16); }
.box .tag { position: absolute; left: 0; top: -22px; background: #1d4ed8; color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.box.video .tag { background: #7c3aed; }
.panel { display: grid; gap: 14px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list li { display: flex; gap: 10px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: .88rem; }
.list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .pg { color: var(--muted); font-size: .78rem; flex-shrink: 0; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.switch input { width: 44px; height: 24px; accent-color: var(--brand); }
.publish { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.order { display: grid; gap: 10px; }
.order-row { display: flex; justify-content: space-between; color: var(--muted); }
.order-row.total { color: var(--navy); font-weight: 800; font-size: 1.2rem; border-top: 1px solid var(--line); padding-top: 12px; }
.paypal-btn { background: #ffc439; color: #111; font-weight: 800; }
.paypal-btn:hover { background: #f2b300; }
.code { position: relative; background: #0f1b28; color: #cfe3f7; border-radius: 10px; padding: 48px 14px 14px; font: .82rem/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; word-break: break-all; }
.code .copy { position: absolute; top: 8px; right: 8px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; height: 42px; border: 1px solid #cfd8e2; border-radius: 10px; padding: 0 12px; font: inherit; background: var(--soft); }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose p, .prose li { color: #374151; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .2s; z-index: 80; font-weight: 500; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { background: var(--bad); }

.loading-page { display: grid; place-items: center; min-height: 50vh; color: var(--muted); }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 4px solid #e3e8ee; border-top-color: var(--brand); animation: spin .9s linear infinite; margin: 0 auto 12px; }

@media (max-width: 980px) {
  .hero-grid, .price-wrap, .upload-layout, .editor, .publish, .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .hero { padding-top: 44px; }
}
@media (max-width: 820px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 10px 20px 16px; border-bottom: 1px solid var(--line); margin: 0; }
  .nav.open .nav-links { display: flex; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn-ghost { display: none; }
}
@media (max-width: 640px) {
  .steps, .features, .compare, .form-row { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .cta-band { padding: 30px; }
  .nav-actions .btn-primary { height: 40px; padding: 0 14px; }
  .nav-inner { gap: 10px; width: calc(100% - 28px); }
  .brand-name { font-size: 1rem; }
  .brand-mark svg { width: 28px; height: 28px; }
  .ws-title h1 { max-width: 80vw; }
  .hero-badge { left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .book-demo .flip { animation: none; }
  * { transition: none !important; }
}

/* ---- WordPress: keep the theme's global styles from overriding the app ---- */
body.cfb-body { margin: 0; padding: 0; font-family: var(--font); font-size: 16px; color: var(--ink); background: #fff; line-height: 1.55; }
.cfb-body h1, .cfb-body h2, .cfb-body h3 { font-family: var(--font); color: var(--navy); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
.cfb-body h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
.cfb-body h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
.cfb-body h3 { font-size: 1.15rem; font-weight: 700; }
.cfb-body .auth-card h1 { font-size: 2rem; }
.cfb-body .page-head h1 { font-size: 1.9rem; margin: 0; }
.cfb-body .ws-title h1 { font-size: 1.6rem; margin: 0; }
.cfb-body .auth-side h2, .cfb-body .volume h3, .cfb-body .cta-band h2 { color: #fff; }
.cfb-body p { margin: 0 0 1em; }
.cfb-body a.btn, .cfb-body .nav-links a, .cfb-body .footer-links a, .cfb-body .tabs a, .cfb-body .brand, .cfb-body .book-card, .cfb-body .back, .cfb-body .menu a { text-decoration: none; }
.cfb-body .btn-primary, .cfb-body .btn-dark { color: #fff; }
.cfb-body button, .cfb-body input, .cfb-body select, .cfb-body textarea { font-family: var(--font); }
.cfb-body .brand-name { color: var(--navy); }
.cfb-body .menu button { color: var(--ink); }

/* ======================================================================
   v1.1 design system: type, nav, landing, pricing tiers, motion
   ====================================================================== */
@font-face { font-family: "InterVar"; src: url("../brand/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "InstrumentSerif"; src: url("../brand/serif-italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }
:root { --serif: "InstrumentSerif", Georgia, "Times New Roman", serif; --night: #071a2e; --grad: linear-gradient(135deg, #ffb03b, #f2620f); --ease: cubic-bezier(.2,.7,.2,1); }
.cfb-body h1, .cfb-body h2 { letter-spacing: -.035em; }
.cfb-body h1 em, .cfb-body h2 em, .brand-name em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.cfb-body h2 em { color: var(--brand); }
.cfb-deep [data-ssr] > * { display: none !important; }
.cfb-deep [data-ssr] { min-height: 70vh; }

/* Nav */
.nav { background: rgba(255,255,255,.82); border-bottom: 1px solid rgba(11,37,64,.06); }
.brand-mark svg { width: 34px; height: 34px; display: block; }
.brand-name { font-size: 1.12rem; }
.brand-name b { font-weight: 800; letter-spacing: -.02em; }
.brand-name em { color: var(--brand); font-size: 1.18em; }
.btn { border-radius: 999px; }
.btn-primary { background: var(--grad); background-size: 140% 140%; background-position: 0% 50%; transition: background-position .4s var(--ease), transform .12s ease, box-shadow .2s ease; }
.btn-primary:hover { background: var(--grad); background-size: 140% 140%; background-position: 100% 50%; box-shadow: 0 10px 26px rgba(242,98,15,.42); transform: translateY(-1px); }
.btn-xl { height: 60px; padding: 0 30px; font-size: 1.06rem; }
.btn-glass { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(6px); }
.btn-glass:hover { background: rgba(255,255,255,.16); }
.btn-lg { border-radius: 999px; }

/* Landing scaffolding */
.l-section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.l-soft { background: #f6f7f9; }
.l-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.l-head.left { text-align: left; margin: 0; }
.cfb-body .l-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.04; }
.l-head p { color: var(--muted); font-size: 1.12rem; }

/* Hero */
.l-hero { position: relative; overflow: hidden; color: #dbe5ef; background: radial-gradient(900px 520px at 78% 12%, rgba(242,98,15,.28), transparent 62%), radial-gradient(700px 500px at 0% 100%, rgba(31,96,160,.35), transparent 60%), linear-gradient(160deg, #061628, #0b2540 60%, #0f3153); padding: clamp(56px, 8vw, 104px) 0 40px; }
.l-glow { position: absolute; inset: -40% -10% auto auto; width: 680px; height: 680px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,176,59,.22), transparent); filter: blur(10px); animation: drift 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes drift { to { transform: translate(-80px, 60px) scale(1.1); } }
.l-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); pointer-events: none; }
.l-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0,1.02fr) minmax(0,1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.cfb-body .l-hero h1 { color: #fff; font-size: clamp(2.5rem, 5.4vw, 4.5rem); line-height: .98; margin: 18px 0 22px; }
.cfb-body .l-hero h1 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.l-lead { font-size: clamp(1.05rem, 1.5vw, 1.24rem); color: #b8c7d6; max-width: 560px; }
.l-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #dbe5ef; text-decoration: none; font-size: .9rem; }
.l-chip span { background: var(--grad); color: #fff; font-weight: 700; font-size: .75rem; padding: 3px 9px; border-radius: 999px; }
.l-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 22px; }
.l-ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .95rem; color: #9fb2c5; }
.l-ticks li::before { content: "✓"; color: #ffb03b; font-weight: 800; margin-right: 8px; }
.l-proof { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 30px; margin-top: clamp(48px, 7vw, 84px); padding-top: 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; color: #8ea3b8; }
.l-proof b { color: #e8eef5; font-weight: 700; letter-spacing: -.01em; }

/* Live demo flipbook */
.l-hero-demo { position: relative; }
.demo-stage { position: relative; perspective: 1600px; padding: 10px 0; }
.demo-stage::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: -6px; height: 40px; background: radial-gradient(closest-side, rgba(0,0,0,.55), transparent); filter: blur(8px); }
.demo-book { position: relative; margin: 0 auto; max-width: 640px; aspect-ratio: 760 / 520; opacity: 0; transform: translateY(16px) rotateX(6deg); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.demo-book.live { opacity: 1; transform: none; aspect-ratio: auto; }
.demo-book:not(.live) .demo-page:not(:first-child) { display: none; }
.demo-book:not(.live) .demo-page:first-child { width: 50%; height: 100%; margin-left: 25%; }
.demo-page { background: #fffdf8; color: #1b2733; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04); }
.demo-page.cover { background: #0f3153; }
.dp, .dp-cover, .dp-back { height: 100%; padding: 8% 9%; display: flex; flex-direction: column; gap: 10px; font-size: clamp(.62rem, 1.05vw, .82rem); line-height: 1.45; }
.dp h4 { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.9em; line-height: 1.02; margin: 0; color: #0b2540; letter-spacing: -.01em; }
.dp p { margin: 0; color: #4b5866; }
.dp-kicker { text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .78em; color: #f2620f; }
.dp-cover { color: #fff; background: radial-gradient(120% 80% at 80% 0%, rgba(255,176,59,.55), transparent 60%), linear-gradient(170deg, #0f3153, #071a2e); }
.dp-cover .dp-kicker { color: #ffcf8a; }
.dp-mast { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 3.1em; line-height: .92; letter-spacing: -.02em; }
.dp-cover-art { flex: 1; position: relative; margin: 6px 0; }
.dp-cover-art span { position: absolute; border-radius: 50%; background: var(--grad); opacity: .9; }
.dp-cover-art span:nth-child(1) { width: 58%; aspect-ratio: 1; right: 0; bottom: 0; }
.dp-cover-art span:nth-child(2) { width: 28%; aspect-ratio: 1; left: 6%; top: 10%; background: #2f7fd0; opacity: .75; }
.dp-cover-art span:nth-child(3) { width: 14%; aspect-ratio: 1; left: 42%; top: 2%; background: #fff; opacity: .85; }
.dp-tag { font-weight: 700; font-size: 1.05em; }
.dp-photo { border-radius: 6px; flex: 1; min-height: 30%; background: linear-gradient(135deg, #ffcf8a, #f2620f); }
.dp-photo.green { background: linear-gradient(135deg, #b7e4a8, #3f8f55); flex: .9; }
.dp-photo.blue { background: linear-gradient(135deg, #a9d3ff, #2f6fb0); }
.dp-toc { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.dp-toc b, .dp-events b { color: #f2620f; margin-right: 8px; font-variant-numeric: tabular-nums; }
.dp-events { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.dp-lines { display: grid; gap: 5px; }
.dp-lines i { height: 5px; background: #e6e1d6; border-radius: 3px; }
.dp-lines i:nth-child(2n) { width: 82%; }
.dp-ad { justify-content: center; text-align: center; background: linear-gradient(160deg, #fff4e4, #ffe0bd); }
.dp-ad strong { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 2.4em; color: #7a2f06; line-height: 1; }
.dp-hotspot { align-self: center; margin-top: 8px; padding: 6px 12px; border: 2px dashed #f2620f; border-radius: 8px; color: #b5440b; font-weight: 700; animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(242,98,15,.15); } }
.dp-video { position: relative; aspect-ratio: 16/9; border-radius: 6px; background: linear-gradient(135deg, #0b2540, #1f5a92); display: grid; place-items: center; }
.dp-video span { width: 22%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.92); clip-path: none; position: relative; }
.dp-video span::after { content: ""; position: absolute; left: 40%; top: 30%; border-left: 12px solid #f2620f; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.dp-back { justify-content: center; text-align: center; background: linear-gradient(170deg, #0f3153, #071a2e); color: #c9d6e3; }
.dp-back strong { font-size: 1.6em; color: #fff; }
.demo-bar { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; color: #9fb2c5; font-size: .9rem; position: relative; z-index: 2; }
.demo-bar button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; font-size: 1.3rem; cursor: pointer; line-height: 1; }
.demo-bar button:hover { background: rgba(255,255,255,.16); }
#demo-count { font-variant-numeric: tabular-nums; min-width: 48px; text-align: center; color: #e8eef5; font-weight: 600; }
.demo-hint { margin-left: 8px; opacity: .8; }

/* Steps */
.l-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; counter-reset: s; }
.l-steps li { position: relative; padding: 30px; border-radius: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(11,37,64,.03); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.l-steps li:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(11,37,64,.08); }
.l-steps .n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 18px; box-shadow: 0 8px 18px rgba(242,98,15,.3); }
.l-steps p { color: var(--muted); margin: 0; }

/* Bento (dark) */
.l-dark { background: #071a2e; color: #b8c7d6; }
.cfb-body .l-dark h2, .cfb-body .l-dark h3 { color: #fff; }
.l-dark .l-head p { color: #9fb2c5; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.b-card { position: relative; overflow: hidden; padding: 30px; border-radius: 22px; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.09); min-height: 210px; }
.b-card p { margin: 0; color: #9fb2c5; max-width: 46ch; }
.b-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: radial-gradient(400px 160px at var(--mx, 80%) 0%, rgba(255,176,59,.16), transparent 70%); pointer-events: none; }
.b-wide { grid-column: span 2; }
.bento .b-wide:last-child { grid-column: 1 / -1; }
.b-art.flips { position: absolute; right: 26px; bottom: 22px; width: 150px; height: 96px; }
.b-art.flips i { position: absolute; right: 0; bottom: 0; width: 70px; height: 96px; border-radius: 3px 8px 8px 3px; background: #fffdf8; transform-origin: left center; box-shadow: 0 6px 18px rgba(0,0,0,.35); animation: flipPage 4.8s var(--ease) infinite; }
.b-art.flips i:nth-child(1) { background: #f6efe2; animation: none; }
.b-art.flips i:nth-child(2) { animation-delay: .4s; }
.b-art.flips i:nth-child(3) { animation-delay: 1.4s; background: #ffe0bd; }
@keyframes flipPage { 0%, 20% { transform: perspective(500px) rotateY(0); } 55%, 100% { transform: perspective(500px) rotateY(-178deg); } }
.b-art.hotspot { margin-top: 22px; display: inline-block; padding: 10px 16px; border: 2px dashed #ffb03b; border-radius: 10px; color: #ffcf8a; font-weight: 700; animation: pulse 2.2s ease-in-out infinite; }
.b-pills { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.b-pills li { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); color: #e8eef5; font-size: .85rem; }

/* Use cases */
.uc { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 28px; align-items: start; }
.uc-tabs { display: grid; gap: 6px; }
.uc-tabs button { text-align: left; padding: 14px 18px; border-radius: 14px; border: 1px solid transparent; background: transparent; font: 600 1rem/1.3 var(--font); color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.uc-tabs button:hover { background: #f6f7f9; color: var(--navy); }
.uc-tabs button[aria-selected="true"] { background: #fff; color: var(--navy); border-color: var(--line); box-shadow: 0 10px 24px rgba(11,37,64,.07); }
.uc-tabs button[aria-selected="true"]::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); margin-right: 10px; vertical-align: middle; }
.uc-panels > div { padding: clamp(26px, 4vw, 44px); border-radius: 26px; background: radial-gradient(500px 220px at 100% 0%, rgba(255,176,59,.18), transparent 70%), #fff; border: 1px solid var(--line); min-height: 300px; animation: fadeUp .4s var(--ease); }
.cfb-body .uc-panels h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.02em; }
.uc-panels p { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.uc-panels ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.uc-panels li::before { content: "→"; color: var(--brand); font-weight: 800; margin-right: 10px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

/* Compare */
.vs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; max-width: 920px; margin: 0 auto; }
.vs-col { padding: 32px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.vs-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; color: var(--muted); }
.vs-col li::before { content: "✕"; color: #c0392b; font-weight: 800; margin-right: 10px; }
.vs-col.good { background: #0b2540; border-color: #0b2540; color: #dbe5ef; box-shadow: 0 24px 50px rgba(11,37,64,.25); }
.cfb-body .vs-col.good h3 { color: #fff; }
.vs-col.good ul { color: #c9d6e3; }
.vs-col.good li::before { content: "✓"; color: #ffb03b; }

/* Pricing tiers */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; align-items: stretch; max-width: 1080px; margin: 0 auto; }
.tier { position: relative; display: flex; flex-direction: column; padding: 32px 28px; border-radius: 26px; background: #fff; border: 1px solid var(--line); }
.tier.featured { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: 0 30px 60px rgba(242,98,15,.16); transform: translateY(-8px); }
.cfb-body .tier h3 { font-size: 1.3rem; margin: 0; }
.tier-sub { color: var(--muted); margin: 4px 0 18px; }
.tier-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 20px; }
.tier-price b { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; color: var(--navy); line-height: 1; }
.tier-price s { color: #94a3b8; font-size: 1.15rem; }
.tier-price span { color: var(--muted); font-size: .92rem; width: 100%; }
.tier ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; font-size: .96rem; }
.tier li::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 10px; }
.tier-badge { position: absolute; top: -13px; left: 28px; padding: 5px 12px; border-radius: 999px; background: var(--grad); color: #fff; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.tier-badge.alt { background: #0b2540; }
.tier-flag { align-self: flex-start; margin: -10px 0 16px; padding: 3px 10px; border-radius: 999px; background: #fff1e6; color: #b5440b; font-size: .78rem; font-weight: 700; }
.tier-note { text-align: center; color: var(--muted); margin-top: 30px; }
.upsell { font-size: .9rem; margin-top: 14px; }

/* FAQ */
.l-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
.l-faq .faq { margin: 0; max-width: none; }
.faq details { border-radius: 16px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: 0 12px 30px rgba(11,37,64,.07); }
.faq summary { padding: 18px 0; }

/* Blog teaser */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.post-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 22px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: #fff; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.post-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(11,37,64,.08); }
.post-card img { border-radius: 14px; aspect-ratio: 16/9; object-fit: cover; width: 100%; height: auto; margin-bottom: 6px; }
.post-date { font-size: .8rem; color: var(--muted); }
.cfb-body .post-card h3 { font-size: 1.12rem; margin: 0; }
.post-card p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Final CTA */
.l-final { padding-top: 0; }
.final { text-align: center; padding: clamp(48px, 7vw, 88px) 24px; border-radius: 32px; color: #c9d6e3; background: radial-gradient(700px 300px at 50% 0%, rgba(242,98,15,.35), transparent 70%), linear-gradient(160deg, #0b2540, #071a2e); position: relative; overflow: hidden; }
.cfb-body .final h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.6rem); line-height: 1.02; }
.cfb-body .final h2 em { color: #ffb03b; }
.final p { font-size: 1.12rem; margin-bottom: 28px; }

/* Sticky mobile CTA */
.sticky-cta { display: none; }

/* Footer */
.footer { background: #071a2e; border-top: 0; margin-top: 0; color: #9fb2c5; }
.footer .brand-name { color: #fff; }
.footer-inner p { color: #8ea3b8; }
.footer-links a { color: #b8c7d6; }
.footer-links a:hover { color: #fff; }
.footer-legal { color: #6f859b; }

/* Reveal motion */
.reveal.pre { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.pre.in { opacity: 1; transform: none; }
.tiers .reveal.pre:nth-child(2), .l-steps .reveal.pre:nth-child(2), .bento .reveal.pre:nth-child(2) { transition-delay: .08s; }
.tiers .reveal.pre:nth-child(3), .l-steps .reveal.pre:nth-child(3), .bento .reveal.pre:nth-child(3) { transition-delay: .16s; }
.tier.featured.reveal.pre.in { transform: translateY(-8px); }

@media (max-width: 980px) {
  .l-hero-grid { grid-template-columns: minmax(0,1fr); }
  .l-hero-copy { text-align: center; }
  .l-lead { margin-left: auto; margin-right: auto; }
  .l-cta, .l-ticks { justify-content: center; }
  .bento { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tiers { grid-template-columns: minmax(0,1fr); max-width: 480px; }
  .tier.featured, .tier.featured.reveal.pre.in { transform: none; }
  .uc { grid-template-columns: minmax(0,1fr); }
  .uc-tabs { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: none; }
  .uc-tabs button { white-space: nowrap; flex: none; }
  .l-faq { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .l-head.left { text-align: center; }
  .posts { grid-template-columns: minmax(0,1fr); max-width: 520px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .l-steps, .bento, .vs { grid-template-columns: minmax(0,1fr); }
  .b-wide { grid-column: auto; }
  .b-art.flips { display: none; }
  .btn-xl { height: 54px; width: 100%; padding: 0 20px; font-size: 1rem; }
  .demo-hint { display: none; }
  .sticky-cta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; transform: translateY(120%); transition: transform .35s var(--ease); }
  .sticky-cta.show { transform: none; }
  .sticky-cta .btn { height: 52px; box-shadow: 0 14px 30px rgba(242,98,15,.45); }
}
@media (prefers-reduced-motion: reduce) {
  .reveal.pre { opacity: 1; transform: none; transition: none; }
  .l-glow, .b-art.flips i, .dp-hotspot, .b-art.hotspot { animation: none; }
}

.cfb-body .footer-legal { margin: 24px auto 0; }
.cfb-body .tier-note { margin: 34px auto 0; max-width: 720px; }
.cfb-body .tier-sub { margin: 4px 0 18px; }
.cfb-body .final p { margin-bottom: 28px; }
.l-chip i { font-style: normal; }
@media (max-width: 640px) { .hide-sm { display: none; } }
@media (max-width: 980px) { .tier.featured { order: -1; } }
@media (max-width: 640px) { .b-card { min-height: 0; padding: 24px; } .l-steps li { padding: 24px; } }

/* ===== v1.1 motion layer (Lenis + scroll-linked effects) ===== */
html.has-lenis { scroll-behavior: auto; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .02em .12em; margin-bottom: -.12em; }
.split .w > span { display: inline-block; transform: translateY(110%) rotate(4deg); transform-origin: 0 100%; transition: transform 1s cubic-bezier(.16,1,.3,1); }
.split.in .w > span { transform: none; }
.l-hero h1.split .w > span { transition-duration: 1.15s; }
/* Gradient italic keeps its gradient once wrapped */
.cfb-body .l-hero h1 .w em { display: inline-block; }
.l-hero-copy { will-change: transform, opacity; }
.l-glow { animation: none; will-change: transform; transition: transform .2s linear; }
.demo-stage { --rx: 0deg; --ry: 0deg; --sy: 0deg; transform: rotateX(calc(var(--rx) + var(--sy))) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
/* Steps connector draws with scroll */
.l-steps { position: relative; }
.l-steps::before { content: ""; position: absolute; left: 52px; right: 52px; top: 52px; height: 2px; background: linear-gradient(90deg, #ffb03b, #f2620f); transform: scaleX(var(--progress, 0)); transform-origin: left; z-index: 0; border-radius: 2px; }
.l-steps li { z-index: 1; }
/* Cursor spotlight */
.b-card::before { background: radial-gradient(320px circle at var(--mx, 80%) var(--my, 0%), rgba(255,176,59,.18), transparent 70%); transition: opacity .3s; }
.tier, .l-steps li, .post-card { background-image: radial-gradient(360px circle at var(--mx, -400px) var(--my, -400px), rgba(242,98,15,.07), transparent 70%); }
.tier.featured { background: radial-gradient(360px circle at var(--mx, -400px) var(--my, -400px), rgba(242,98,15,.08), transparent 70%) padding-box, linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; }
.b-card { transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .3s; }
.b-card:hover { transform: translateY(-4px); border-color: rgba(255,176,59,.35); }
.tier { transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s; }
.tier:hover { box-shadow: 0 30px 60px rgba(11,37,64,.12); }
.btn-xl, .tier .btn, .final .btn { transition: transform .25s cubic-bezier(.2,.7,.2,1), background-position .4s, box-shadow .2s; }
.final { transform-origin: 50% 100%; will-change: transform; }
/* Proof strip: gentle marquee on small screens */
@media (max-width: 640px) { .l-steps::before { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .split .w > span { transform: none !important; transition: none; }
  .demo-stage, .final, .l-hero-copy { transform: none !important; }
}
.l-chip .chip-t { font-weight: 400; }

/* ===== v1.1 site pages ===== */
/* Footer */
.footer { padding: 64px 0 28px; }
.footer-inner { align-items: flex-start; gap: 40px; }
.footer-brand { max-width: 380px; }
.footer-brand .btn { margin-top: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(120px, auto)); gap: 18px 56px; }
.footer-cols h4 { margin: 0 0 12px; color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; }
.footer-cols a { display: block; color: #b8c7d6; text-decoration: none; padding: 5px 0; font-size: .95rem; }
.footer-cols a:hover { color: #fff; }
.cfb-body .footer-legal { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; margin-top: 40px; }
.nav-links a[aria-current="page"] { color: var(--navy); background: var(--soft); }

/* Page hero */
.p-hero { position: relative; overflow: hidden; text-align: center; color: #b8c7d6; padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px);
  background: radial-gradient(800px 420px at 80% 0%, rgba(242,98,15,.26), transparent 62%), radial-gradient(600px 400px at 0% 100%, rgba(31,96,160,.3), transparent 60%), linear-gradient(160deg, #061628, #0b2540 60%, #0f3153); }
.p-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, #000, transparent 90%); pointer-events: none; }
.p-hero .wrap { position: relative; z-index: 2; max-width: 860px; }
.p-hero .eyebrow { color: #ffcf8a; }
.cfb-body .p-hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.02; margin: 8px 0 18px; }
.cfb-body .p-hero h1 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.p-hero .l-lead { margin: 0 auto; }

/* Why + promise */
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.why { position: relative; padding: 34px; border-radius: 24px; border: 1px solid var(--line); background: #fff; }
.why-n { display: inline-block; font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; }
.cfb-body .why h3 { font-size: 1.3rem; }
.why p { color: var(--muted); margin: 0; }
.why a { color: var(--brand-dark); }
.l-promise { background: #f6f7f9; }
.promise { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.cfb-body .promise-story h2 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.04; }
.promise-story p { color: var(--muted); font-size: 1.08rem; }
.promise-list { list-style: none; margin: 0; padding: 28px; border-radius: 26px; background: #0b2540; color: #c9d6e3; display: grid; gap: 16px; box-shadow: 0 30px 60px rgba(11,37,64,.2); }
.promise-list li { padding-left: 34px; position: relative; }
.promise-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--grad); color: #fff; font-size: .75rem; font-weight: 800; display: grid; place-items: center; }
.promise-list b { color: #fff; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,.8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.about-card { position: sticky; top: 100px; padding: 30px; border-radius: 24px; background: #0b2540; color: #c9d6e3; }
.cfb-body .about-card h3 { color: #fff; }
.about-card ul { list-style: none; padding: 0; margin: 6px 0 18px; display: grid; gap: 8px; }
.about-card li { color: #fff; font-weight: 600; }
.about-card a { color: #ffcf8a; }
.prose-lg { font-size: 1.1rem; line-height: 1.75; color: #2a3744; max-width: 72ch; }
.cfb-body .prose-lg h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 1.8em 0 .6em; }
.cfb-body .prose-lg h3 { font-size: 1.25rem; margin: 1.6em 0 .5em; }
.prose-lg > :first-child { margin-top: 0; }
.prose-lg a { color: var(--brand-dark); text-underline-offset: 3px; }
.prose-lg ul, .prose-lg ol { padding-left: 1.3em; }
.prose-lg li { margin: .35em 0; }
.prose-lg code { background: #f3f4f6; padding: .1em .4em; border-radius: 6px; font-size: .9em; }
.prose-lg table { width: 100%; border-collapse: collapse; font-size: .98rem; margin: 1.4em 0; }
.prose-lg th, .prose-lg td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose-lg th { background: #f6f7f9; color: var(--navy); }
.prose-lg figure { margin: 0; }
.who-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.who { padding: 28px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.who p, .value p { color: var(--muted); margin: 0; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.value { padding: 30px; border-radius: 22px; border-top: 3px solid var(--brand); background: #fff; box-shadow: 0 12px 30px rgba(11,37,64,.06); }

/* Pricing compare */
.cmp-wrap { overflow-x: auto; border-radius: 22px; border: 1px solid var(--line); background: #fff; max-width: 980px; margin: 0 auto; }
.cmp { width: 100%; border-collapse: collapse; min-width: 560px; }
.cmp th, .cmp td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp th { color: var(--navy); font-size: 1rem; }
.cmp th:nth-child(3) { color: var(--brand-dark); }
.cmp td:first-child, .cmp th:first-child { text-align: left; color: var(--muted); font-weight: 500; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp td { font-weight: 600; color: var(--navy); }

/* FAQ page */
.faq-page { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 48px; align-items: start; }
.faq-nav { position: sticky; top: 100px; display: grid; gap: 4px; }
.faq-nav a:not(.btn) { padding: 10px 14px; border-radius: 12px; color: var(--muted); text-decoration: none; font-weight: 600; }
.faq-nav a:not(.btn):hover { background: #f6f7f9; color: var(--navy); }
.faq-nav .btn { margin-top: 14px; }
.faq-group { margin-bottom: 44px; scroll-margin-top: 100px; }
.cfb-body .faq-group h2 { font-size: 1.5rem; }
.faq-group .faq { max-width: none; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,.8fr); gap: 28px; align-items: start; }
.contact-form { padding: 32px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form select, .contact-form textarea { width: 100%; font: inherit; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.contact-side { display: grid; gap: 14px; }
.contact-side .card { padding: 24px; }
.contact-side a { color: var(--brand-dark); font-weight: 600; word-break: break-all; }
.form-ok { padding: 22px; border-radius: 14px; background: #ecfdf3; color: #14532d; }

/* Legal */
.legal-grid { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 100px; display: grid; gap: 2px; font-size: .92rem; }
.legal-toc a { padding: 7px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; }
.legal-toc a:hover { background: #f6f7f9; color: var(--navy); }
.legal .prose-lg h2 { scroll-margin-top: 100px; }

/* Blog */
.blog-list { padding-top: 48px; }
.blog-bar { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; background: #fff; }
.pills a:hover { color: var(--navy); border-color: #c6d0db; }
.pills a[aria-current="page"] { background: #0b2540; color: #fff; border-color: #0b2540; }
.bsearch input { height: 44px; border-radius: 999px; border: 1px solid var(--line); padding: 0 18px; font: inherit; min-width: 240px; }
.bgrid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.bcard { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.bcard:hover { transform: translateY(-5px); box-shadow: 0 24px 50px rgba(11,37,64,.1); }
.bcard-img { aspect-ratio: 16/9; background: linear-gradient(135deg, #0b2540, #123a63); overflow: hidden; }
.bcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.bcard:hover .bcard-img img { transform: scale(1.04); }
.bcard-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bmeta { font-size: .82rem; color: var(--muted); }
.bmeta b { color: var(--brand-dark); }
.cfb-body .bcard h3 { font-size: 1.2rem; margin: 0; line-height: 1.25; }
.bcard p { color: var(--muted); margin: 0; font-size: .96rem; }
.bmore { margin-top: auto; padding-top: 8px; color: var(--navy); font-weight: 700; font-size: .92rem; }
.bcard.big { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); margin-bottom: 24px; }
.bcard.big .bcard-img { aspect-ratio: auto; min-height: 340px; }
.bcard.big .bcard-body { padding: clamp(26px, 4vw, 48px); justify-content: center; }
.cfb-body .bcard.big h3 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); letter-spacing: -.03em; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pager .page-numbers { min-width: 42px; height: 42px; padding: 0 14px; display: inline-grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 600; }
.pager .current { background: #0b2540; color: #fff; border-color: #0b2540; }
.empty-blog { text-align: center; padding: 60px 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
/* Single post */
.post-hero { position: relative; overflow: hidden; color: #b8c7d6; padding: clamp(56px, 8vw, 104px) 0 clamp(120px, 14vw, 180px); background: radial-gradient(800px 420px at 85% 0%, rgba(242,98,15,.24), transparent 62%), linear-gradient(160deg, #061628, #0b2540 60%, #0f3153); }
.post-hero-inner { position: relative; z-index: 2; max-width: 900px; }
.crumbs { font-size: .9rem; margin-bottom: 18px; }
.crumbs a { color: #ffcf8a; text-decoration: none; }
.cfb-body .post-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.05; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .92rem; margin-top: 18px; }
.post-meta span + span::before { content: "·"; margin-right: 20px; opacity: .6; }
.post-cover { margin-top: clamp(-150px, -12vw, -96px); position: relative; z-index: 3; }
.post-cover img { width: 100%; height: auto; max-height: 560px; object-fit: cover; border-radius: 26px; box-shadow: 0 40px 80px rgba(11,37,64,.25); }
.post-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 56px; padding-top: 56px; padding-bottom: 24px; align-items: start; }
.post-aside { position: sticky; top: 100px; display: grid; gap: 16px; }
.aside-cta { padding: 24px; border-radius: 22px; background: radial-gradient(300px 160px at 100% 0%, rgba(242,98,15,.35), transparent 70%), #0b2540; color: #c9d6e3; }
.aside-cta strong { display: block; color: #fff; font-size: 1.15rem; margin-bottom: 6px; }
.aside-cta p { font-size: .92rem; }
.aside-share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .88rem; color: var(--muted); }
.aside-share a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--navy); text-decoration: none; }
.post-end-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin: 40px 0 0; padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: linear-gradient(135deg, #fff4e8, #ffe4cc); }
.cfb-body .post-end-cta h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0 0 6px; }
.post-end-cta p { margin: 0; color: #6b4a2f; }
.related { padding-top: 64px; }
.cfb-body .related-h { font-size: 1.6rem; margin-bottom: 22px; }

/* Auth (login / sign up) */
.auth2 { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); min-height: calc(100vh - 68px); }
.auth2-side { position: relative; overflow: hidden; color: #b8c7d6; display: flex; align-items: center; padding: clamp(40px, 6vw, 80px);
  background: radial-gradient(700px 420px at 90% 0%, rgba(242,98,15,.3), transparent 62%), radial-gradient(500px 400px at 0% 100%, rgba(31,96,160,.35), transparent 60%), linear-gradient(160deg, #061628, #0b2540 60%, #0f3153); }
.auth2-side::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, #000, transparent 90%); pointer-events: none; }
.auth2-side-inner { position: relative; z-index: 2; max-width: 500px; margin-left: auto; width: 100%; }
.auth2-side .eyebrow { color: #ffcf8a; }
.cfb-body .auth2-side h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.02; }
.cfb-body .auth2-side h2 em { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.auth2-book { position: relative; height: 170px; margin: 30px 0 28px; }
.auth2-book i { position: absolute; top: 0; width: 120px; height: 160px; border-radius: 4px 10px 10px 4px; background: #fffdf8; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.auth2-book i::before { content: ""; position: absolute; left: 14px; right: 14px; top: 16px; height: 62px; border-radius: 4px; background: linear-gradient(135deg, #ffcf8a, #f2620f); }
.auth2-book i::after { content: ""; position: absolute; left: 14px; right: 30px; top: 92px; height: 34px; background: repeating-linear-gradient(#e6e1d6 0 5px, transparent 5px 11px); }
.auth2-book i:nth-child(1) { left: 0; transform: rotate(-8deg); background: #f3ead9; }
.auth2-book i:nth-child(2) { left: 70px; transform: rotate(-2deg); }
.auth2-book i:nth-child(3) { left: 140px; transform: rotate(5deg); animation: authFlip 5s cubic-bezier(.2,.7,.2,1) infinite; transform-origin: left center; }
.auth2-book i:nth-child(3)::before { background: linear-gradient(135deg, #a9d3ff, #2f6fb0); }
.auth2-book b { position: absolute; left: 250px; top: 54px; padding: 6px 12px; border: 2px dashed #ffb03b; border-radius: 10px; color: #ffcf8a; font-size: .85rem; animation: pulse 2.2s ease-in-out infinite; white-space: nowrap; }
@keyframes authFlip { 0%, 35% { transform: rotate(5deg); } 60%, 100% { transform: rotate(5deg) perspective(500px) rotateY(-20deg); } }
.auth2-ticks { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; font-size: 1.02rem; }
.auth2-ticks li { padding-left: 32px; position: relative; color: #dbe5ef; }
.auth2-ticks li::before { content: "✓"; position: absolute; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--grad); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; top: 2px; }
.auth2-proof { font-size: .9rem; color: #8ea3b8; border-top: 1px solid rgba(255,255,255,.1); padding-top: 18px; }
.auth2-proof b { color: #e8eef5; }
.auth2-main { display: flex; align-items: center; justify-content: center; padding: clamp(32px, 5vw, 64px) 24px; background: #f6f7f9; }
.auth2-card { width: 100%; max-width: 460px; background: #fff; border-radius: 28px; padding: clamp(28px, 4vw, 44px); box-shadow: 0 30px 70px rgba(11,37,64,.1); border: 1px solid rgba(11,37,64,.06); }
.auth2-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: 999px; background: #f1f3f6; margin-bottom: 28px; }
.auth2-tabs a { text-align: center; padding: 10px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: .95rem; }
.auth2-tabs a[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(11,37,64,.1); }
.cfb-body .auth2-card h1 { font-size: 1.9rem; margin-bottom: 4px; }
.auth2-card > p.muted { margin-bottom: 22px; }
.auth2-card .field input { height: 50px; border-radius: 14px; }
.auth2-card .form-foot { text-align: center; margin-top: 18px; color: var(--muted); }
.auth2-card .form-foot a, .auth2-card a { color: var(--brand-dark); }
.auth2-legal { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); text-align: center; }

@media (max-width: 980px) {
  .why-grid, .promise, .about-grid, .contact-grid, .who-grid, .values { grid-template-columns: minmax(0,1fr); }
  .about-card, .faq-nav, .legal-toc, .post-aside { position: static; }
  .faq-page, .legal-grid, .post-layout { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .faq-nav { display: flex; flex-wrap: wrap; } .faq-nav .btn { margin: 0; }
  .legal-toc { display: none; }
  .bgrid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .bcard.big { grid-template-columns: minmax(0,1fr); } .bcard.big .bcard-img { min-height: 0; aspect-ratio: 16/9; }
  .auth2 { grid-template-columns: minmax(0,1fr); }
  .auth2-side { order: 2; padding: 40px 24px; } .auth2-side-inner { margin: 0 auto; }
  .auth2-book { display: none; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .bgrid, .field-row { grid-template-columns: minmax(0,1fr); }
  .bsearch, .bsearch input { width: 100%; min-width: 0; }
  .why, .who, .value, .contact-form { padding: 24px; }
  .post-meta span + span::before { margin-right: 12px; }
}
.auth2-card .auth2-tabs a { color: var(--muted); } .auth2-card .auth2-tabs a[aria-selected="true"] { color: var(--navy); }
.cfb-site #pricing { padding-top: 56px; } .cfb-site #pricing .l-head { display: none; }

/* =====================================================================
   STUDIO — dark professional workspace (dashboard, editor, account)
   ===================================================================== */
body.studio {
  --s-bg: #0b0d11; --s-bg2: #101318; --s-panel: #151920; --s-panel2: #1b2029; --s-hover: #222834;
  --s-line: #262c37; --s-line2: #313846; --s-text: #e7eaf0; --s-muted: #8a93a4; --s-dim: #5f6879;
  --s-accent: #ff7a1a; --s-accent2: #ffb03b; --s-blue: #4c8dff; --s-violet: #a274ff; --s-green: #34d399; --s-red: #f87171;
  --ink: var(--s-text); --muted: var(--s-muted); --line: var(--s-line); --soft: var(--s-panel2); --navy: var(--s-text);
  background: var(--s-bg); color: var(--s-text); color-scheme: dark;
}
body.studio > .nav, body.studio > .footer, body.studio .skip { display: none; }
body.studio #main { min-height: 100vh; }
.studio h1, .studio h2, .studio h3 { color: var(--s-text); }
.st { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.st svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* sidebar */
.st-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 18px 14px; background: var(--s-bg2); border-right: 1px solid var(--s-line); }
.st-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 16px; text-decoration: none; color: #fff; font-size: 1.02rem; }
.st-brand svg { width: 30px; height: 30px; }
.st-brand b { font-weight: 800; letter-spacing: -.02em; }
.st-brand em { font-family: var(--serif); font-style: italic; color: var(--s-accent2); font-size: 1.15em; }
.st-new { display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--s-accent2), var(--s-accent)); color: #fff; font-weight: 700; text-decoration: none; margin-bottom: 14px; box-shadow: 0 8px 24px rgba(255,122,26,.25); }
.st-new:hover { filter: brightness(1.06); }
.st-nav { display: grid; gap: 2px; }
.st-nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--s-muted); text-decoration: none; font-weight: 600; font-size: .93rem; }
.st-nav a:hover { background: var(--s-panel); color: var(--s-text); }
.st-nav a[aria-current="page"] { background: var(--s-panel2); color: #fff; box-shadow: inset 2px 0 0 var(--s-accent); }
.st-credits { margin-top: auto; padding: 14px; border-radius: 14px; background: radial-gradient(200px 100px at 100% 0%, rgba(255,122,26,.22), transparent 70%), var(--s-panel); border: 1px solid var(--s-line); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; font-size: .82rem; color: var(--s-muted); }
.st-credits b { grid-row: span 2; font-size: 1.6rem; color: #fff; }
.st-credits a { color: var(--s-accent2); text-decoration: none; font-weight: 600; }
.st-user { display: flex; align-items: center; gap: 10px; padding: 12px 6px 4px; border-top: 1px solid var(--s-line); margin-top: 10px; min-width: 0; }
.st-user > div { min-width: 0; flex: 1; }
.st-user strong, .st-user span:not(.st-avatar) { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-user strong { font-size: .88rem; color: #fff; }
.st-user div span { font-size: .76rem; color: var(--s-dim); }
.st-avatar { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #3b4252, #262c37); display: grid; place-items: center; font-weight: 800; color: #fff; flex: none; }
.st-user button { background: none; border: 0; color: var(--s-muted); cursor: pointer; padding: 6px; border-radius: 8px; }
.st-user button:hover { background: var(--s-panel); color: #fff; }
.st-site { display: flex; align-items: center; gap: 8px; padding: 8px 6px; color: var(--s-dim); text-decoration: none; font-size: .82rem; }
.st-site:hover { color: var(--s-text); }
.st-site svg { width: 14px; height: 14px; }

/* main */
.st-main { min-width: 0; display: flex; flex-direction: column; }
.st-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px 32px 18px; border-bottom: 1px solid var(--s-line); }
.studio .st-head h1 { font-size: 1.55rem; margin: 0; letter-spacing: -.02em; }
.st-head p { margin: 4px 0 0; color: var(--s-muted); font-size: .94rem; }
.st-actions, .st-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.st-body { padding: 26px 32px 48px; }
.st-loading { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 60px 20px; color: var(--s-muted); }
.studio .spinner { border-color: var(--s-line2); border-top-color: var(--s-accent); }

/* buttons */
.sbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--s-line2); background: var(--s-panel2); color: var(--s-text); font: 600 .9rem/1 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.sbtn:hover { background: var(--s-hover); border-color: #3c4454; }
.sbtn:active { transform: translateY(1px); }
.sbtn-primary { background: linear-gradient(135deg, var(--s-accent2), var(--s-accent)); border-color: transparent; color: #fff; box-shadow: 0 6px 18px rgba(255,122,26,.22); }
.sbtn-primary:hover { background: linear-gradient(135deg, var(--s-accent2), var(--s-accent)); filter: brightness(1.07); border-color: transparent; }
.sbtn-danger { background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.35); color: #fca5a5; }
.sbtn-danger:hover { background: rgba(248,113,113,.18); border-color: rgba(248,113,113,.5); }
.sbtn-ghost { background: transparent; border-color: transparent; color: var(--s-muted); }
.sbtn-icon { width: 34px; height: 34px; padding: 0; }
.sbtn-lg { height: 48px; padding: 0 22px; font-size: 1rem; }
.sbtn-block { width: 100%; }
.sbtn[disabled], .sbtn.is-loading { opacity: .55; pointer-events: none; }
.sbtn.is-loading::after { content: ""; width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }

/* dashboard */
.st-stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 22px; }
.st-stat { padding: 16px 18px; border-radius: 14px; background: var(--s-panel); border: 1px solid var(--s-line); }
.st-stat span { display: block; font-size: .8rem; color: var(--s-muted); }
.st-stat b { font-size: 1.6rem; color: #fff; letter-spacing: -.02em; }
.st-toolbar { display: flex; gap: 12px; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.st-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--s-panel); border: 1px solid var(--s-line); min-width: 260px; color: var(--s-muted); }
.st-search input { background: none; border: 0; outline: 0; color: var(--s-text); font: inherit; width: 100%; }
.st-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--s-panel); border: 1px solid var(--s-line); }
.st-seg button { border: 0; background: none; color: var(--s-muted); font: 600 .85rem var(--font); padding: 7px 12px; border-radius: 8px; cursor: pointer; }
.st-seg button[aria-pressed="true"] { background: var(--s-hover); color: #fff; }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.st-card { display: flex; flex-direction: column; border-radius: 14px; background: var(--s-panel); border: 1px solid var(--s-line); overflow: hidden; text-decoration: none; color: var(--s-text); transition: transform .2s, border-color .2s, box-shadow .2s; }
.st-card:hover { transform: translateY(-3px); border-color: #3c4454; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.st-cover { position: relative; aspect-ratio: 3/4; background: #0e1116; display: grid; place-items: center; padding: 14px; }
.st-cover img { height: 100%; max-width: 100%; object-fit: contain; width: auto; box-shadow: 0 10px 30px rgba(0,0,0,.5); border-radius: 2px; }
.st-cover .pill { position: absolute; left: 10px; top: 10px; }
.st-cover .ph { color: var(--s-dim); font-size: .85rem; }
.st-card-body { padding: 12px 14px 14px; min-width: 0; }
.studio .st-card h3 { font-size: .95rem; margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.st-card-meta { display: block; font-size: .78rem; color: var(--s-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-empty { text-align: center; padding: 64px 24px; border: 1px dashed var(--s-line2); border-radius: 18px; background: var(--s-panel); }
.st-empty p { color: var(--s-muted); }
.st-empty .st-row { justify-content: center; }
.st-empty-ic { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 14px; display: grid; place-items: center; background: rgba(255,122,26,.12); color: var(--s-accent2); }
.st-empty-ic svg { width: 28px; height: 28px; }
.st-none { color: var(--s-muted); padding: 30px 0; }

/* pills in studio */
.studio .pill.done { background: rgba(76,141,255,.14); color: #8fb6ff; }
.studio .pill.paid { background: rgba(52,211,153,.14); color: #6ee7b7; }
.studio .pill.work { background: rgba(255,176,59,.14); color: #fcd27b; }

/* generic components in studio (upload page, publish, banners) */
.studio .card { background: var(--s-panel); border-color: var(--s-line); color: var(--s-text); }
.studio .card h3 { color: #fff; }
.studio .muted, .studio .side-note ol { color: var(--s-muted); }
.studio .field label { color: var(--s-text); }
.studio .field input, .studio .field select, .studio .field textarea, .studio .copy-row input { background: var(--s-bg2); border-color: var(--s-line2); color: var(--s-text); }
.studio .drop { background: var(--s-bg2); border-color: var(--s-line2); }
.studio .drop:hover, .studio .drop.drag { background: rgba(255,122,26,.06); border-color: var(--s-accent); }
.studio .drop strong { color: #fff; }
.studio .drop .big { background: rgba(255,122,26,.12); }
.studio .file-chosen { background: var(--s-bg2); border-color: var(--s-line2); }
.studio .progress { background: var(--s-line); }
.studio .btn-outline { background: var(--s-panel2); color: var(--s-text); border-color: var(--s-line2); }
.studio .btn-dark { background: #fff; color: #0b0d11; }
.studio .banner.ok { background: rgba(52,211,153,.1); border-color: rgba(52,211,153,.3); color: #a7f3d0; }
.studio .banner.info { background: rgba(255,176,59,.08); border-color: rgba(255,176,59,.28); color: #fde3b0; }
.studio .banner.bad { background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.3); color: #fecaca; }
.studio .code { background: var(--s-bg2); border-color: var(--s-line2); color: #c7d0dd; }
.studio .order-row { border-color: var(--s-line); }
.studio .checks li { color: var(--s-text); }
.studio .card a:not([class]), .studio .ed-panel a:not([class]), .studio .banner a:not([class]), .studio .upsell a { color: var(--s-accent2); }

/* editor */
.ed { display: flex; flex-direction: column; min-height: 100vh; }
.ed-bar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; align-items: center; gap: 14px; height: 60px; padding: 0 16px; background: rgba(16,19,24,.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--s-line); }
.ed-back { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: var(--s-muted); border: 1px solid var(--s-line); }
.ed-back:hover { color: #fff; background: var(--s-panel); }
.ed-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ed-crumb { color: var(--s-dim); font-size: .88rem; white-space: nowrap; }
.studio .ed-title h1 { font-size: 1rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.ed-title .pill { flex: none; }
.ed-tools { display: flex; gap: 2px; padding: 3px; background: var(--s-bg2); border: 1px solid var(--s-line); border-radius: 12px; }
.ed-tools a { display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 9px; color: var(--s-muted); text-decoration: none; font-weight: 600; font-size: .86rem; white-space: nowrap; }
.ed-tools a:hover { color: #fff; background: var(--s-panel2); }
.ed-tools a[aria-current="page"] { background: var(--s-hover); color: #fff; box-shadow: inset 0 -2px 0 var(--s-accent); }
.ed-tools svg { width: 16px; height: 16px; }
.ed-actions { display: flex; gap: 8px; }
.ed-flash { margin: 14px 16px 0; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255,176,59,.28); background: rgba(255,176,59,.08); color: #fde3b0; }
.ed-flash.ok { border-color: rgba(52,211,153,.3); background: rgba(52,211,153,.1); color: #a7f3d0; }
.ed-flash.bad { border-color: rgba(248,113,113,.3); background: rgba(248,113,113,.1); color: #fecaca; }
.ed-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ed-preview { flex: 1; padding: 16px; display: flex; }
.ed-frame { flex: 1; width: 100%; min-height: calc(100vh - 150px); border: 1px solid var(--s-line); border-radius: 14px; background: #1b1e24; }
.ed-hint { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 16px 16px; padding: 10px 12px 10px 16px; border-radius: 12px; background: var(--s-panel); border: 1px solid var(--s-line); color: var(--s-muted); font-size: .9rem; }
.ed-hint span { display: flex; align-items: center; gap: 8px; }

.ed-work { flex: 1; display: grid; grid-template-columns: 116px minmax(0,1fr) 320px; min-height: calc(100vh - 60px); }
.ed-film { position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; padding: 12px 10px; display: grid; align-content: start; gap: 10px; background: var(--s-bg2); border-right: 1px solid var(--s-line); scrollbar-width: thin; scrollbar-color: var(--s-line2) transparent; }
.ed-thumb { position: relative; padding: 4px; border-radius: 8px; border: 1px solid transparent; background: none; cursor: pointer; color: var(--s-muted); font: 600 .72rem var(--font); }
.ed-thumb img { width: 100%; height: auto; border-radius: 3px; display: block; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.ed-thumb span { display: block; margin-top: 4px; }
.ed-thumb:hover { background: var(--s-panel); }
.ed-thumb.on { border-color: var(--s-accent); background: rgba(255,122,26,.08); color: #fff; }
.ed-thumb.has::after { content: ""; position: absolute; right: 8px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--s-blue); box-shadow: 0 0 0 2px var(--s-bg2); }
.ed-stage { min-width: 0; display: flex; flex-direction: column; background: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0) 0 0/22px 22px, #0e1014; }
.ed-stagebar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--s-line); background: rgba(16,19,24,.6); }
.ed-pager { display: flex; align-items: center; gap: 6px; }
.ed-pager select, .ins-input { height: 38px; border-radius: 10px; border: 1px solid var(--s-line2); background: var(--s-bg2); color: var(--s-text); font: 500 .92rem var(--font); padding: 0 12px; }
.ed-pager select { width: auto; min-width: 110px; }
.ed-tip { display: flex; align-items: center; gap: 8px; color: var(--s-muted); font-size: .85rem; }
.ed-tip svg { width: 15px; height: 15px; color: var(--s-accent2); }
.ed-canvas-wrap { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding: 28px; overflow: auto; }
.studio .canvas { max-width: min(680px, 100%); width: 100%; background: #fff; box-shadow: 0 30px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04); border-radius: 2px; }
.studio .box { border-color: var(--s-accent); background: rgba(255,122,26,.16); box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.studio .box.saved { border-color: var(--s-blue); background: rgba(76,141,255,.16); }
.studio .box.saved.video { border-color: var(--s-violet); background: rgba(162,116,255,.18); }
.ed-inspector { position: sticky; top: 60px; height: calc(100vh - 60px); overflow-y: auto; background: var(--s-bg2); border-left: 1px solid var(--s-line); }
.ins-sec { padding: 18px; border-bottom: 1px solid var(--s-line); display: grid; gap: 10px; }
.studio .ins-sec h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--s-muted); margin: 0; }
.ins-steps { margin: 0; padding-left: 18px; color: var(--s-muted); font-size: .86rem; display: grid; gap: 3px; }
.ins-label { font-size: .82rem; font-weight: 600; color: var(--s-text); }
.ins-input { width: 100%; }
textarea.ins-input { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.ins-input:focus, .ed-pager select:focus { outline: 2px solid rgba(255,122,26,.5); outline-offset: 0; border-color: var(--s-accent); }
.ins-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ins-list li { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 6px 6px 6px 8px; border-radius: 10px; background: var(--s-panel); border: 1px solid var(--s-line); }
.ins-go { border: 0; cursor: pointer; font: 700 .72rem var(--font); color: #8fb6ff; background: rgba(76,141,255,.14); padding: 4px 7px; border-radius: 6px; }
.ins-url { font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--s-text); }
.ins-none { color: var(--s-muted); font-size: .9rem; list-style: none; margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* settings + panels */
.ed-panel-wrap { padding: 24px 28px 48px; display: grid; gap: 16px; max-width: 980px; width: 100%; }
.ed-panel { background: var(--s-panel); border: 1px solid var(--s-line); border-radius: 16px; overflow: hidden; }
.ed-group { padding: 20px 22px; border-bottom: 1px solid var(--s-line); }
.ed-group:last-child { border-bottom: 0; }
.studio .ed-group h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--s-muted); margin: 0 0 14px; }
.ed-row { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 8px 24px; align-items: start; padding: 10px 0; }
.ed-row + .ed-row { border-top: 1px dashed var(--s-line); }
.ed-row > label { font-weight: 600; font-size: .9rem; color: var(--s-text); padding-top: 9px; }
.ed-row small { display: block; margin-top: 6px; color: var(--s-dim); font-size: .8rem; line-height: 1.4; }
.ed-row .opt { color: var(--s-dim); font-weight: 500; font-size: .78rem; }
.ed-color { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ed-color input[type="color"] { width: 44px; height: 38px; padding: 3px; border-radius: 10px; border: 1px solid var(--s-line2); background: var(--s-bg2); cursor: pointer; }
.ed-color .ins-input { width: 120px; font-family: ui-monospace, Menlo, monospace; text-transform: uppercase; }
.ed-swatches { display: flex; gap: 6px; }
.ed-swatches button { width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(255,255,255,.15); cursor: pointer; }
.ed-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; padding-top: 6px; }
.ed-switch input { position: absolute; opacity: 0; }
.ed-switch span { position: relative; width: 40px; height: 22px; border-radius: 999px; background: var(--s-line2); transition: background .2s; flex: none; }
.ed-switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.ed-switch input:checked + span { background: var(--s-accent); }
.ed-switch input:checked + span::after { transform: translateX(18px); }
.ed-switch input:focus-visible + span { outline: 2px solid rgba(255,122,26,.6); outline-offset: 2px; }
.ed-switch em { font-style: normal; color: var(--s-muted); font-size: .88rem; }
.ed-save { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; background: rgba(0,0,0,.15); border-top: 1px solid var(--s-line); }
.ed-danger { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 18px 22px; border-color: rgba(248,113,113,.25); }
.studio .ed-danger h3 { font-size: 1rem; margin: 0 0 4px; color: #fca5a5; }
.ed-danger p { margin: 0; color: var(--s-muted); font-size: .9rem; }
.studio .publish { gap: 16px; }

/* account */
.acc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.acc-nav { position: sticky; top: 20px; display: grid; gap: 2px; }
.acc-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--s-muted); text-decoration: none; font-weight: 600; font-size: .9rem; }
.acc-nav a:hover { background: var(--s-panel); color: #fff; }
.acc-nav a[aria-current="page"] { background: var(--s-panel2); color: #fff; }
.acc-main { display: grid; gap: 16px; min-width: 0; max-width: 900px; }
.acc-id { display: flex; align-items: center; gap: 14px; }
.acc-id strong { display: block; color: #fff; font-size: 1.1rem; }
.acc-id span { color: var(--s-muted); font-size: .88rem; }
.acc-avatar { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, var(--s-accent2), var(--s-accent)); flex: none; }
.acc-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.acc-plan { padding: 22px; display: grid; gap: 6px; align-content: start; }
.acc-plan p { margin: 0 0 10px; color: var(--s-muted); font-size: .92rem; }
.studio .acc-plan h3 { margin: 0; font-size: 1.2rem; }
.studio .acc-big { font-size: 2.4rem; letter-spacing: -.03em; }
.acc-k { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--s-dim); font-weight: 700; }
.acc-pm { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 16px; align-items: center; }
.acc-pm p { margin: 4px 0 0; color: var(--s-muted); font-size: .9rem; }
.acc-pm strong { color: #fff; }
.acc-pp { width: 64px; height: 44px; border-radius: 10px; background: #fff; color: #003087; font-weight: 800; font-style: italic; display: grid; place-items: center; font-size: .85rem; }
.acc-note { color: var(--s-dim); font-size: .84rem; margin: 12px 0 0; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 560px; }
.tbl th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--s-dim); padding: 0 12px 10px; border-bottom: 1px solid var(--s-line); }
.tbl td { padding: 12px; border-bottom: 1px solid var(--s-line); color: var(--s-text); white-space: nowrap; }
.tbl td.tbl-desc { white-space: normal; min-width: 200px; }
.pw-meter { height: 4px; border-radius: 4px; background: var(--s-line); margin-top: 8px; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.pw-meter i.weak { background: var(--s-red); } .pw-meter i.ok { background: var(--s-accent2); } .pw-meter i.strong { background: var(--s-green); }
.tk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tk-list a { display: grid; grid-template-columns: auto minmax(0,1fr) auto auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--s-bg2); border: 1px solid var(--s-line); text-decoration: none; color: var(--s-text); }
.tk-list a:hover { border-color: #3c4454; }
.tk-id { color: var(--s-dim); font-weight: 700; font-size: .82rem; font-variant-numeric: tabular-nums; }
.tk-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.tk-date { color: var(--s-dim); font-size: .82rem; white-space: nowrap; }
.tk-head { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--s-line); }
.studio .tk-head h2 { font-size: 1.15rem; margin: 2px 0 0; overflow-wrap: anywhere; }
.tk-thread { padding: 20px 22px; display: grid; gap: 14px; }
.tk-msg { max-width: 80%; padding: 14px 16px; border-radius: 14px; background: var(--s-panel2); border: 1px solid var(--s-line); }
.tk-msg.me { justify-self: end; background: rgba(255,122,26,.08); border-color: rgba(255,122,26,.25); }
.tk-msg.staff { justify-self: start; }
.tk-meta { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; font-size: .82rem; }
.tk-meta strong { color: #fff; }
.tk-meta span { color: var(--s-dim); }
.tk-body { color: var(--s-text); font-size: .94rem; line-height: 1.55; overflow-wrap: anywhere; }
.tk-reply { border-top: 1px solid var(--s-line); padding: 18px 22px 0; }
.tk-reply .ed-save { margin: 12px -22px 0; }
.tk-closed { padding: 0 22px 20px; }

body.studio .toast { background: #fff; color: #0b0d11; }

@media (max-width: 1180px) {
  .ed-work { grid-template-columns: 96px minmax(0,1fr) 280px; }
  .ed-tools span { display: none; }
  .ed-tools a { padding: 8px 10px; }
}
@media (max-width: 980px) {
  .st { grid-template-columns: minmax(0,1fr); }
  .st-side { position: sticky; top: 0; z-index: 30; height: auto; flex-direction: row; align-items: center; gap: 8px; padding: 10px 12px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--s-line); }
  .st-brand { padding: 0 6px 0 0; } .st-brand span { display: none; }
  .st-new { margin: 0; height: 36px; padding: 0 12px; } .st-new span { display: none; }
  .st-nav { display: flex; } .st-nav a { padding: 8px 10px; } .st-nav a span { display: none; }
  .st-credits, .st-site { display: none; }
  .st-user { margin: 0 0 0 auto; padding: 0; border: 0; } .st-user > div { display: none; }
  .st-stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .st-head, .st-body { padding-left: 18px; padding-right: 18px; }
  .ed-bar { top: 57px; grid-template-columns: auto minmax(0,1fr) auto; height: auto; padding: 10px 12px; row-gap: 10px; }
  .ed-tools { grid-column: 1 / -1; order: 5; justify-content: space-between; overflow-x: auto; }
  .ed-crumb { display: none; }
  .ed-work { grid-template-columns: minmax(0,1fr); }
  .ed-film { position: static; height: auto; display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--s-line); }
  .ed-thumb { width: 64px; flex: none; }
  .ed-inspector { position: static; height: auto; border-left: 0; border-top: 1px solid var(--s-line); }
  .ed-canvas-wrap { padding: 14px; }
  .ed-row { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .ed-row > label { padding-top: 0; }
  .acc { grid-template-columns: minmax(0,1fr); }
  .acc-nav { position: static; display: flex; overflow-x: auto; }
  .acc-nav a { white-space: nowrap; }
  .acc-cards { grid-template-columns: minmax(0,1fr); }
  .acc-pm { grid-template-columns: auto minmax(0,1fr); } .acc-pm .sbtn { grid-column: 1 / -1; justify-self: start; }
  .ed-panel-wrap { padding: 16px; }
  .ed-frame { min-height: 70vh; }
}
@media (max-width: 560px) {
  .ed-actions .sbtn:not(.sbtn-primary) { display: none; }
  .ed-title .pill { display: none; }
  .tk-list a { grid-template-columns: minmax(0,1fr) auto; } .tk-id, .tk-date { display: none; }
  .tk-msg { max-width: 100%; }
  .st-search { min-width: 0; flex: 1; }
}
.st-brand img { width: 30px; height: 30px; flex: none; }
@media (max-width: 640px) {
  .st-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .st-toolbar { flex-direction: column; align-items: stretch; }
  .st-search { width: 100%; }
  .st-seg { align-self: flex-start; }
  .st-cover { padding: 10px; }
}
/* Promo codes */
.coupon { margin-top: 16px; }
.coupon-toggle { background: none; border: 0; padding: 0; color: var(--brand-dark); font: 600 .9rem var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.coupon-row { display: flex; gap: 8px; margin-top: 10px; }
.coupon-row input { flex: 1; min-width: 0; height: 42px; border-radius: 10px; border: 1px solid var(--line); padding: 0 12px; font: 600 .95rem var(--font); text-transform: uppercase; letter-spacing: .04em; }
.coupon-row .btn { height: 42px; border-radius: 10px; }
.coupon-msg { margin: 8px 0 0; font-size: .86rem; min-height: 1em; }
.coupon-msg.ok { color: var(--ok); } .coupon-msg.bad { color: var(--bad); }
.order-row.disc { color: var(--ok); }
.studio .coupon-toggle { color: var(--s-accent2); }
.studio .coupon-row input { background: var(--s-bg2); border-color: var(--s-line2); color: var(--s-text); }
.studio .coupon-msg.ok, .studio .order-row.disc { color: #6ee7b7; } .studio .coupon-msg.bad { color: #fca5a5; }
.acc-coupon { margin: 2px 0 10px; text-transform: uppercase; }
/* 4 plans + calculator */
.tiers { grid-template-columns: repeat(4, minmax(0,1fr)); max-width: 1240px; gap: 16px; }
.tier { padding: 30px 24px; }
.tier-price b { font-size: 2.6rem; }
.calc { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 28px; align-items: center; max-width: 1080px; margin: 40px auto 0; padding: clamp(24px, 4vw, 40px); border-radius: 28px; background: #0b2540; color: #c9d6e3; box-shadow: 0 30px 60px rgba(11,37,64,.2); }
.calc-q label { display: block; color: #fff; font-weight: 800; font-size: clamp(1.2rem, 2.2vw, 1.6rem); letter-spacing: -.02em; margin-bottom: 18px; }
.calc-row { display: flex; align-items: center; gap: 16px; }
.calc-row input { flex: 1; accent-color: #f2620f; height: 28px; }
.calc-row output { min-width: 56px; text-align: center; font-size: 1.8rem; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.calc-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.calc-presets button { border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #dbe5ef; border-radius: 999px; padding: 8px 14px; font: 600 .88rem var(--font); cursor: pointer; }
.calc-presets button[aria-pressed="true"] { background: #fff; color: #0b2540; }
.calc-a { display: grid; gap: 12px; }
.calc-you, .calc-sub { padding: 18px 20px; border-radius: 18px; display: grid; gap: 2px; }
.calc-you { background: linear-gradient(135deg, rgba(255,176,59,.2), rgba(242,98,15,.18)); border: 1px solid rgba(255,176,59,.4); }
.calc-sub { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); }
.calc-a span { font-size: .85rem; color: #9fb2c5; }
.calc-a b { font-size: 2.2rem; color: #fff; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc-sub b { color: #9fb2c5; text-decoration: line-through; text-decoration-color: rgba(255,255,255,.35); }
.calc:not(.wins) .calc-sub b { text-decoration: none; }
.calc-a small { font-size: .84rem; color: #9fb2c5; }
@media (max-width: 1180px) { .tiers { grid-template-columns: repeat(2, minmax(0,1fr)); max-width: 760px; } .tier.featured, .tier.featured.reveal.pre.in { transform: none; } }
@media (max-width: 760px) { .tiers { grid-template-columns: minmax(0,1fr); max-width: 480px; } .calc { grid-template-columns: minmax(0,1fr); } }
.cfb-body .tier-sub { min-height: 3em; } @media (max-width: 760px) { .cfb-body .tier-sub { min-height: 0; } }
/* How it works demo */
.hiw-demo { max-width: 1180px; margin: 0 auto clamp(36px, 5vw, 56px); padding: clamp(18px, 3vw, 34px) clamp(12px, 3vw, 34px) clamp(14px, 2vw, 22px); border-radius: 32px; background: radial-gradient(800px 400px at 85% 0%, rgba(242,98,15,.28), transparent 60%), radial-gradient(600px 400px at 0% 100%, rgba(47,111,176,.3), transparent 60%), #070b12; box-shadow: 0 40px 80px rgba(11,37,64,.25); }
.hiw-frame { display: block; width: 100%; height: 760px; border: 0; background: transparent; }
@media (max-width: 760px) { .hiw-frame { height: 640px; } .hiw-demo { border-radius: 22px; } }
/* Riffle wordmark */
.brand-name b { letter-spacing: -.035em; font-size: 1.12em; }
.brand-dot { font-style: normal; font-weight: 800; color: var(--brand); }
.footer .brand-dot, .st-brand .brand-dot { color: #ffb03b; }
