:root {
  --blue: #2F6EA5; --blue2: #4A90C8; --teal: #3BB3A4; --orange: #F2A65A; --coral: #E8706A;
  --ink: #2E3A4B; --muted: #677489; --line: #D5DDE8; --panel: #F4F7FB; --bg: #ffffff;
  --ok: #2e8b57; --bad: #c0392b; --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Arial, "Helvetica Neue", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; }
a { color: var(--blue); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
  background: var(--blue); color: #fff; font: 600 15px Arial, sans-serif; padding: 12px 22px; border-radius: 999px;
  text-decoration: none; transition: background .15s, transform .15s; }
.btn:hover { background: #255a88; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn.ghost:hover { background: #eaf2fa; }
.btn.small { padding: 7px 14px; font-size: 13px; }
.btn.light { background: #fff; color: var(--blue); }

/* header */
header.top { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.logo .dot { width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #9cc7ea 0 18%, var(--blue2) 45%, var(--blue) 100%); }
nav.links { display: flex; gap: 22px; align-items: center; }
nav.links a { color: var(--ink); text-decoration: none; font-size: 15px; }
nav.links a.btn { color: #fff; }
.mock img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--line); }
@media (max-width: 720px) { nav.links .hide-sm { display: none; } }

/* hero */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, #F4F7FB 0%, #fff 100%); }
.hero .wrap > * { min-width: 0; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.12; margin: 0 0 18px; }
.hero h1 span { color: var(--blue); }
.hero p.lead { font-size: 18px; color: var(--muted); margin: 0 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: 0 18px 50px rgba(47,110,165,.12); }
.mock .row { display: flex; gap: 12px; align-items: center; }
.mock .sheet { flex: 1; aspect-ratio: 4/3; border-radius: 12px; border: 1px solid var(--line); background: var(--panel);
  display: grid; place-items: center; position: relative; overflow: hidden; }
.mock .arrow { font-size: 26px; color: var(--blue); }
.mock .cap { text-align: center; font-size: 12px; color: var(--muted); margin-top: 8px; }
.sketch { width: 70%; height: 60%; border: 2px dashed #9aa5b4; border-radius: 50%; }
.ball { position: absolute; border-radius: 50%; border: 1.2px solid #3D4A5C; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }

/* sections */
section { padding: 64px 0; }
section h2 { font-size: 32px; text-align: center; margin: 0 0 10px; }
section p.sub { text-align: center; color: var(--muted); margin: 0 auto 40px; max-width: 640px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .grid3 { grid-template-columns: 1fr; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 12px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.badge { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 18px; }

/* pricing */
.toggle { display: flex; justify-content: center; margin-bottom: 28px; }
.toggle button { border: 1px solid var(--line); background: #fff; padding: 8px 18px; cursor: pointer; font: 600 14px Arial; color: var(--muted); }
.toggle button:first-child { border-radius: 999px 0 0 999px; }
.toggle button:last-child { border-radius: 0 999px 999px 0; }
.toggle button.on { background: var(--blue); color: #fff; border-color: var(--blue); }
.price { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; }
.price.best { border: 2px solid var(--blue); box-shadow: 0 14px 40px rgba(47,110,165,.13); position: relative; }
.price.best::before { content: "Most popular"; position: absolute; top: -13px; left: 24px; background: var(--blue); color: #fff;
  font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.price h3 { margin: 0; font-size: 20px; }
.price .amt { font-size: 38px; font-weight: 700; margin: 12px 0 2px; }
.price .amt small { font-size: 15px; color: var(--muted); font-weight: 400; }
.price ul { list-style: none; padding: 0; margin: 18px 0 24px; flex: 1; }
.price li { padding: 6px 0 6px 26px; position: relative; font-size: 15px; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 16px 4px; max-width: 760px; margin: 0 auto; }
summary { cursor: pointer; font-weight: 700; }
details p { color: var(--muted); margin: 10px 0 0; }

footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

/* dashboard */
.dash { padding: 28px 0 60px; }
.dash-grid { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel h2 { font-size: 18px; text-align: left; margin: 0 0 14px; }
.drop { border: 2px dashed #a9b8cc; border-radius: 12px; background: #fff; padding: 26px 14px; text-align: center; cursor: pointer; transition: .15s; }
.drop.over { border-color: var(--blue); background: #eef5fc; }
.drop strong { display: block; margin-bottom: 4px; }
.drop span { color: var(--muted); font-size: 13px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 8px; margin-top: 12px; }
.thumbs .t { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .x { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border-radius: 50%; border: 0; background: rgba(46,58,75,.8); color: #fff; cursor: pointer; font-size: 12px; line-height: 20px; padding: 0; }
textarea, input[type=email], input[type=password] { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: 15px Arial; color: var(--ink); background: #fff; }
textarea { min-height: 96px; resize: vertical; margin-top: 12px; }
label.lbl { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 4px; }
.usage { font-size: 14px; color: var(--muted); margin: 12px 0; }
.bar { height: 6px; background: #e3e9f1; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--teal); }
.msg { font-size: 14px; margin-top: 10px; min-height: 20px; }
.msg.err { color: var(--bad); }
.batch { margin-bottom: 22px; }
.batch-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.batch-head .t { font-weight: 700; }
.batch-head .s { color: var(--muted); font-size: 13px; }
.jobs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.job { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.job .img { aspect-ratio: 4/3; background: var(--panel); display: grid; place-items: center; cursor: zoom-in; }
.job .img img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.job .meta { padding: 10px 12px; font-size: 13px; }
.job .name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-top: 6px; }
.status.queued { background: #eef1f5; color: var(--muted); }
.status.running { background: #e6f1fb; color: var(--blue); }
.status.done { background: #e5f5ee; color: var(--ok); }
.status.failed { background: #fdecea; color: var(--bad); }
.job .acts { display: flex; gap: 6px; padding: 0 12px 12px; flex-wrap: wrap; }
.spin { width: 30px; height: 30px; border: 3px solid #cfdcea; border-top-color: var(--blue); border-radius: 50%; animation: s 0.9s linear infinite; }
@keyframes s { to { transform: rotate(360deg); } }
.empty { text-align: center; color: var(--muted); padding: 50px 10px; border: 1px dashed var(--line); border-radius: 12px; }

.gbtn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 14px;
  border: 1px solid #c7d0dc; border-radius: 999px; padding: 11px; color: var(--ink); font-weight: 700; text-decoration: none; background: #fff; }
.gbtn:hover { background: #f4f7fb; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; margin: 14px 0 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* modal + viewer */
.modal { position: fixed; inset: 0; background: rgba(30,40,55,.55); display: none; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal.open { display: flex; }
.modal .box { background: #fff; border-radius: 18px; padding: 28px; width: 100%; max-width: 400px; }
.modal .box h2 { margin: 0 0 4px; font-size: 22px; text-align: left; }
.modal .switch { font-size: 14px; color: var(--muted); margin-top: 14px; text-align: center; }
.viewer img { max-width: 94vw; max-height: 88vh; background: #fff; border-radius: 8px; }
.banner { background: #fff7ea; border: 1px solid #f4d7a8; color: #8a5a12; padding: 10px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
.legal { max-width: 800px; padding: 40px 16px 80px; }
.legal h1 { font-size: 30px; } .legal h2 { text-align: left; font-size: 22px; margin-top: 36px; }

html, body { overflow-x: hidden; }
@media (max-width: 520px) { .hero h1 { font-size: 30px; } header.top .logo { font-size: 18px; } }

/* ---------- studio: tabs, options, downloads, refine ---------- */
.tabs { display: flex; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 14px; }
.tab { flex: 1; border: 0; background: transparent; padding: 9px 10px; border-radius: 999px; font: 600 14px Arial, sans-serif; color: var(--muted); cursor: pointer; }
.tab.on { background: var(--blue); color: #fff; }
.opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.opts label { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); gap: 4px; min-width: 0; }
.opts select { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font: 13px Arial, sans-serif; color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 5px 10px; font-size: 12px; cursor: pointer; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.file-pill { margin-top: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.perks { font-size: 13px; color: var(--muted); margin: 8px 0 10px; }
.dd { position: relative; display: inline-flex; gap: 6px; }
.dd .menu { display: none; position: absolute; top: 100%; left: 0; margin-top: 4px; z-index: 5; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 10px 30px rgba(20,40,70,.15); min-width: 170px; padding: 6px; }
.dd .menu.open { display: block; }
.dd .menu a, .dd .menu span { display: block; padding: 7px 10px; font-size: 13px; border-radius: 6px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.dd .menu a:hover { background: var(--panel); }
.dd .menu .locked { color: #9aa5b5; cursor: help; }
.refine { display: flex; gap: 6px; padding: 0 12px 12px; }
.refine input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: 13px Arial, sans-serif; }
@media (max-width: 560px) { .opts { grid-template-columns: 1fr; } }

/* ---------- landing extras ---------- */
.kicker { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.kicker a { color: var(--muted); }
.narrow { max-width: 820px; }
.tool-hero { padding: 56px 0 40px; }
.steps-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 18px 50px rgba(47,110,165,.10); }
.steps-box .stp { display: flex; gap: 12px; align-items: center; padding: 12px 6px; border-bottom: 1px dashed var(--line); font-weight: 600; }
.steps-box .stp:last-child { border-bottom: 0; }
.steps-box .stp i { font-style: normal; width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; }
ul.ticks { list-style: none; padding: 0; }
ul.ticks li { padding: 6px 0 6px 28px; position: relative; }
ul.ticks li::before { content: "✓"; position: absolute; left: 4px; color: var(--teal); font-weight: 700; }
ul.examples { padding-left: 18px; }
ul.examples li { margin: 6px 0; }
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 12px 0 28px; }
.tool { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; transition: .15s; }
.tool:hover { border-color: var(--blue); box-shadow: 0 8px 24px rgba(47,110,165,.12); }
.tool b { display: block; margin-bottom: 4px; }
.tool span { font-size: 13px; color: var(--muted); }
.article h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; }
.article h2 { text-align: left; font-size: 22px; margin-top: 28px; }
.article p, .article li { font-size: 16.5px; }
.cta-box { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 28px 0; }
.cta-box span { color: var(--muted); flex: 1; min-width: 200px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #fff; display: block; }
.gallery figcaption { font-size: 13px; color: var(--muted); padding: 8px 12px; border-top: 1px solid var(--line); }
.feat { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.feat .card h3 { margin-top: 6px; }
.feat .ico { font-size: 26px; }
.two-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; max-width: 520px; }
.two-cta a { display: block; text-decoration: none; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px; color: var(--ink); }
.two-cta a:hover { border-color: var(--blue); }
.two-cta a b { display: block; color: var(--blue); }
.two-cta a span { font-size: 13px; color: var(--muted); }
.formats { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.formats span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 13px; }
@media (max-width: 560px) { .two-cta { grid-template-columns: 1fr; } }
.narrow h2 { text-align: left; margin-top: 32px; }
.narrow .sub { text-align: left; }
.gallery { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.hero h1, .hero p.lead { overflow-wrap: anywhere; }
@media (max-width: 640px) { .gallery { grid-template-columns: 1fr; } nav.links { gap: 12px; } }
.dash-grid { grid-template-columns: minmax(360px, 440px) 1fr; }
@media (max-width: 900px) { .dash-grid { grid-template-columns: 1fr; } }
.opts select { text-overflow: ellipsis; }

/* ================= professional home (v3) ================= */
:root { --navy: #0B1426; --navy2: #111D35; --navy3: #1A2846; --glow: #5AA9FF; }
.dark-top { background: rgba(11,20,38,.92); backdrop-filter: blur(8px); border-bottom-color: rgba(255,255,255,.08); }
.dark-top .logo, .dark-top nav.links a { color: #E6EDF7; }
.dark-top nav.links a.btn { color: #fff; }
.xhero { background: radial-gradient(1200px 500px at 50% -10%, #1D3B6E 0%, var(--navy) 60%); color: #E6EDF7; padding: 64px 0 40px; text-align: center; }
.xhero .pill { display: inline-block; background: rgba(90,169,255,.12); border: 1px solid rgba(90,169,255,.35); color: #A9D1FF; border-radius: 999px; padding: 6px 14px; font-size: 13px; margin-bottom: 18px; }
.xhero h1 { font-size: clamp(32px, 5.4vw, 56px); line-height: 1.08; margin: 0 0 16px; letter-spacing: -.5px; }
.xhero h1 span { background: linear-gradient(90deg, #7CC0FF, #6EE7D2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.xhero .lead { color: #AFC0D8; font-size: 18px; max-width: 720px; margin: 0 auto 26px; }
.promptbox { max-width: 780px; margin: 0 auto; background: #fff; border-radius: 18px; padding: 12px; text-align: left; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.promptbox textarea { width: 100%; border: 0; outline: 0; resize: none; font: 16px Arial, sans-serif; color: var(--ink); padding: 10px 8px; min-height: 64px; }
.pb-modes { display: flex; gap: 6px; padding: 2px 4px 6px; }
.pb-modes input { display: none; }
.pb-modes span { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; border: 1px solid var(--line); }
.pb-modes input:checked + span { background: var(--blue); color: #fff; border-color: var(--blue); }
.pb-foot { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 10px; }
.pb-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pb-chips button { border: 1px solid var(--line); background: var(--panel); border-radius: 999px; padding: 5px 10px; font-size: 12px; color: var(--ink); cursor: pointer; }
.pb-chips button:hover { border-color: var(--blue); color: var(--blue); }
.trust { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 18px; font-size: 13px; color: #8FA3C0; }
.strip { background: var(--navy); padding: 10px 0 46px; overflow: hidden; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.track { display: flex; gap: 16px; width: max-content; animation: slide 60s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.track a { flex: none; width: 260px; background: #fff; border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.track img { width: 100%; height: 170px; object-fit: contain; background: #fff; display: block; }
.track b { display: block; padding: 9px 12px; font-size: 13px; border-top: 1px solid var(--line); }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .track { animation: none; } }
.dark-sec { background: var(--navy2); color: #E6EDF7; }
.dark-sec h2 { color: #fff; }
.dark-sec p.sub { color: #9DB0CB; }
.steps4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps4 > div { background: var(--navy3); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 22px; }
.steps4 i { font-style: normal; font-size: 26px; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: rgba(90,169,255,.15); margin-bottom: 12px; }
.steps4 b { display: block; font-size: 17px; margin-bottom: 6px; color: #fff; }
.steps4 span { color: #9DB0CB; font-size: 14px; }
@media (max-width: 860px) { .steps4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps4 { grid-template-columns: 1fr; } }
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.ba figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 14px 40px rgba(47,110,165,.12); }
.ba img { width: 100%; aspect-ratio: 5/4; object-fit: contain; display: block; background: #fff; }
.ba figcaption { padding: 10px 14px; font-size: 13px; font-weight: 700; border-top: 1px solid var(--line); }
.ba-arrow { font-size: 38px; color: var(--blue); font-weight: 700; }
@media (max-width: 760px) { .ba { grid-template-columns: 1fr; } .ba-arrow { transform: rotate(90deg); justify-self: center; } }
.tgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tgrid a { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); transition: .18s; }
.tgrid a:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(47,110,165,.16); border-color: var(--blue2); }
.tgrid img { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #fff; display: block; border-bottom: 1px solid var(--line); }
.tgrid b { display: block; padding: 10px 12px 2px; }
.tgrid span { display: block; padding: 0 12px 12px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .tgrid { grid-template-columns: 1fr 1fr; } }
.tiny-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 14px; }
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.split .lead2 { color: #AFC0D8; font-size: 17px; }
ul.ticks.light li { color: #D7E2F2; }
.formats.left { justify-content: flex-start; }
.dark-sec .formats span { background: var(--navy3); color: #E6EDF7; border-color: rgba(255,255,255,.15); }
.framed { display: grid; gap: 12px; }
.framed img { width: 100%; background: #fff; border-radius: 12px; display: block; box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.framed img + img { width: 60%; justify-self: end; margin-top: -60px; border: 4px solid var(--navy2); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .framed img + img { width: 70%; } }
.usecases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.usecases > div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.usecases b { display: block; margin-bottom: 8px; }
.usecases p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 900px) { .usecases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .usecases { grid-template-columns: 1fr; } }
.cta-band { background: linear-gradient(120deg, #1D4E89, #2F6EA5 50%, #3BB3A4); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 6px; }
.cta-band p { color: #DDEBFA; margin: 0 0 20px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn.ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.8); }
.btn.ghost-light:hover { background: rgba(255,255,255,.1); }
.big-foot { background: var(--navy); color: #9DB0CB; border-top: 0; }
.big-foot .wrap { display: block; }
.fcols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px; padding: 40px 0 24px; }
.fcols b { display: block; color: #fff; margin-bottom: 10px; font-size: 14px; }
.fcols a { display: block; color: #9DB0CB; text-decoration: none; font-size: 13px; margin: 6px 0; }
.fcols a:hover { color: #fff; }
.fcols .logo { color: #fff; margin-bottom: 10px; }
.fcols p { font-size: 13px; margin: 0; }
.fbar { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: 13px; }
@media (max-width: 860px) { .fcols { grid-template-columns: 1fr 1fr; } }
/* tool pages: image hero */
.tool-shot { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: 0 18px 50px rgba(47,110,165,.14); }
.tool-shot img { width: 100%; display: block; border-radius: 10px; }
.tool-shot .cap { font-size: 12px; color: var(--muted); text-align: center; margin-top: 8px; }
.steps-inline { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; color: var(--muted); }
.steps-inline span i { font-style: normal; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 12px; margin-right: 6px; }

/* ---------- v4: AI-image fix, use-case carousel, dark FAQ ---------- */
.center { text-align: center; }
.pill2 { display: inline-block; background: #EAF4FF; color: var(--blue2); border-radius: 999px; padding: 6px 16px; font-size: 12px; font-weight: 700; letter-spacing: 2px; margin-bottom: 12px; }
.fixgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fixgrid > div { background: var(--navy3); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.fixgrid .bad { color: #F4A3A0; font-size: 14px; }
.fixgrid .good { color: #8EE6C9; font-size: 15px; font-weight: 700; }
@media (max-width: 860px) { .fixgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .fixgrid { grid-template-columns: 1fr; } }
.usec { padding-bottom: 60px; }
.ucar { margin-top: 8px; }
.utrack { animation-duration: 70s; padding: 6px 0; }
.ucard { flex: none; width: 400px; background: #0A1324; border: 1px solid rgba(214,226,243,.55); border-radius: 16px; padding: 22px 24px; display: flex; flex-direction: column; min-height: 250px; }
.utop { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.utag { background: rgba(169,200,230,.75); color: #0F4C81; border-radius: 999px; padding: 4px 12px; font-size: 11.5px; font-weight: 700; letter-spacing: 1.4px; }
.uq { color: #2F8FE0; font-size: 30px; line-height: 1; }
.ucard p { color: #B9C6D8; font-size: 15.5px; line-height: 1.6; margin: 0 0 16px; flex: 1; }
.uwho { border-top: 1px dashed rgba(214,226,243,.5); padding-top: 14px; display: flex; gap: 12px; align-items: center; }
.uwho i { font-style: normal; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, #2F6EA5, #3BB3A4); color: #fff; display: grid; place-items: center; font-weight: 700; border: 2px solid #D6E2F3; }
.uwho span { color: #9DB0CB; font-size: 13.5px; }
@media (max-width: 520px) { .ucard { width: 300px; } }
.faqbox { border: 1px solid rgba(214,226,243,.55); border-radius: 22px; padding: 6px 10px; background: #081120; }
.faqbox details { border-bottom: 1px dashed rgba(214,226,243,.45); max-width: none; margin: 0; padding: 18px 24px; }
.faqbox details:last-child { border-bottom: 0; }
.faqbox summary { color: #C9D6E8; font-size: 17px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; }
.faqbox summary::-webkit-details-marker { display: none; }
.faqbox summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid #8FA3C0; border-bottom: 2px solid #8FA3C0; transform: rotate(45deg); transition: transform .2s; flex: none; margin-top: -4px; }
.faqbox details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faqbox details p { color: #9DB0CB; margin: 12px 0 0; }
.faqbox a { color: #7CC0FF; }
#faq h2 { text-align: center; }

/* ---------- v5: pricing cards, 6-col footer, free tools ---------- */
.pctl { display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 6px 0 28px; }
.seg { border: 1px solid rgba(214,226,243,.55); border-radius: 12px; padding: 5px; display: flex; gap: 4px; }
.seg button { border: 0; background: transparent; color: #8FA3C0; font: 700 15px Arial, sans-serif; padding: 9px 22px; border-radius: 9px; }
.seg button.on { background: #1677D2; color: #fff; }
.pctl label { color: #C9D6E8; display: flex; gap: 10px; align-items: center; font-size: 15px; }
.pctl select { background: #0A1324; color: #C9D6E8; border: 1px solid rgba(214,226,243,.55); border-radius: 8px; padding: 8px 10px; font: 14px Arial, sans-serif; }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1060px; margin: 0 auto; }
.pcard { position: relative; background: #0A1324; border: 1px solid rgba(214,226,243,.5); border-radius: 18px; padding: 26px 24px; color: #C9D6E8; }
.pcard.pop { border-color: #3B9BF0; box-shadow: 0 0 0 1px #3B9BF0, 0 18px 50px rgba(22,119,210,.25); }
.ptag { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: #1677D2; color: #fff; font-weight: 700; font-size: 13px; padding: 5px 16px; border-radius: 8px; }
.pcard h3 { margin: 0 0 6px; color: #fff; font-size: 20px; }
.pdesc { color: #9DB0CB; font-size: 14.5px; min-height: 44px; margin: 0 0 14px; }
.pamt { font-size: 38px; font-weight: 800; color: #fff; }
.pamt small { font-size: 16px; color: #8FA3C0; font-weight: 400; }
.pper { color: #39B6FF; font-weight: 700; font-size: 14px; margin: 4px 0 14px; }
.pcred { color: #C9D6E8; font-size: 14.5px; margin-bottom: 18px; }
.pbtn { width: 100%; padding: 13px; border-radius: 10px; }
.pcard .btn:not(.ghost-light) { background: #1677D2; }
.pfeat { list-style: none; padding: 18px 0 0; margin: 20px 0 0; border-top: 1px dashed rgba(214,226,243,.45); }
.pfeat li { position: relative; padding: 7px 0 7px 30px; font-size: 14.5px; color: #B9C6D8; }
.pfeat li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 19px; height: 19px; border: 1.5px solid #39B6FF; border-radius: 50%; color: #39B6FF; font-size: 11px; display: grid; place-items: center; font-weight: 700; }
@media (max-width: 900px) { .pgrid { grid-template-columns: 1fr; max-width: 460px; } }
.fcols6 { grid-template-columns: 1.3fr repeat(4, 1fr); }
.fcols6 > div { min-width: 0; }
@media (max-width: 1000px) { .fcols6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .fcols6 { grid-template-columns: 1fr 1fr; } }
.ftool { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 10px 0 24px; }
.ftool label { display: inline-flex; flex-direction: column; gap: 4px; margin: 0 12px 12px 0; font-size: 13px; color: var(--muted); }
.ftool input:not([type=file]) { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: 15px Arial, sans-serif; width: 140px; }
.fout { margin-top: 14px; font-size: 16px; line-height: 1.7; }
.cbgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.cbgrid figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cbgrid canvas { width: 100%; display: block; }
.cbgrid figcaption { padding: 6px 10px; font-size: 13px; font-weight: 700; }
table.punnett { border-collapse: collapse; margin-top: 16px; }
table.punnett th, table.punnett td { border: 1px solid var(--line); padding: 8px 12px; text-align: center; font-family: monospace; font-size: 15px; }
table.punnett th { background: #EAF2FB; }


/* ================= THEME: one professional palette ================= */
:root {
  --blue: #2563EB; --blue2: #3B82F6; --teal: #14B8A6; --orange: #F59E0B; --coral: #EF4444;
  --ink: #0F172A; --muted: #475569; --line: #E2E8F0; --panel: #F8FAFC; --bg: #FFFFFF;
  --navy: #0B1220; --navy2: #0F1A2E; --navy3: #16233D; --accent: #38BDF8; --radius: 14px;
}
body { font-family: "Inter", Arial, "Helvetica Neue", sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { letter-spacing: -0.02em; }
section h2 { font-weight: 800; }
a { color: var(--blue); }
.btn, .tab, .chip, .pb-chips button, .pb-modes span, .seg button, .opts select, .refine input,
.promptbox textarea, .pctl select { font-family: "Inter", Arial, sans-serif; }
.btn { background: var(--blue); border-radius: 10px; font-weight: 600; box-shadow: 0 1px 2px rgba(15,23,42,.08); }
.btn:hover { background: #1D4ED8; transform: translateY(-1px); }
.btn.ghost { background: #fff; color: var(--blue); border: 1px solid #BFDBFE; }
.btn.ghost:hover { background: #EFF6FF; }
.btn.light { background: #fff; color: var(--blue); }
.btn.small { border-radius: 8px; }
.dark-top { background: rgba(11,18,32,.94); border-bottom: 1px solid rgba(148,163,184,.14); }
.dark-top .logo, .dark-top nav.links a { color: #E2E8F0; }
.dark-top nav.links a:hover { color: #fff; }
.dark-top .btn.ghost { background: transparent; color: #E2E8F0; border-color: rgba(226,232,240,.4); }
#who { color: #94A3B8 !important; }
.logo .dot { background: radial-gradient(circle at 35% 30%, #BAE6FD 0 16%, #38BDF8 42%, #2563EB 100%); }
.xhero { background: radial-gradient(1100px 520px at 50% -12%, #1E3A8A 0%, var(--navy) 62%); }
.xhero h1 span { background: linear-gradient(90deg, #60A5FA, #2DD4BF); -webkit-background-clip: text; background-clip: text; }
.xhero .pill { background: rgba(56,189,248,.10); border-color: rgba(56,189,248,.35); color: #BAE6FD; }
.pb-modes input:checked + span, .tab.on, .seg button.on { background: var(--blue); border-color: var(--blue); }
.dark-sec { background: var(--navy2); }
.steps4 > div, .fixgrid > div { background: var(--navy3); border-color: rgba(148,163,184,.14); }
.steps4 i { background: rgba(56,189,248,.12); color: #7DD3FC; }
.feat .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #EFF6FF; color: var(--blue); }
.card { background: #fff; border-color: var(--line); box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.card p, .tgrid span, .tool span, section p.sub { color: var(--muted); }
.tgrid a, .tool, .ba figure, .gallery figure { border-color: var(--line); }
.tgrid a:hover, .tool:hover { border-color: #93C5FD; box-shadow: 0 12px 30px rgba(37,99,235,.12); }
.utag { background: rgba(56,189,248,.16); color: #7DD3FC; }
.uq { color: #38BDF8; }
.uwho i { background: linear-gradient(135deg, #2563EB, #14B8A6); }
.ucard, .pcard, .faqbox { background: #0A1222; border-color: rgba(148,163,184,.28); }
.ucard p, .faqbox details p, .pdesc, .pfeat li { color: #CBD5E1; }
.faqbox summary { color: #E2E8F0; }
.pper, .pfeat li::before { color: #38BDF8; border-color: #38BDF8; }
.pcard.pop { border-color: var(--blue2); box-shadow: 0 0 0 1px var(--blue2), 0 18px 50px rgba(37,99,235,.25); }
.ptag, .pcard .btn:not(.ghost-light) { background: var(--blue); }
.pill2 { background: rgba(37,99,235,.10); color: var(--blue); }
.dark-sec .pill2 { background: rgba(56,189,248,.14); color: #7DD3FC; }
.cta-band { background: linear-gradient(120deg, #1E3A8A 0%, #2563EB 55%, #0EA5E9 100%); }
.big-foot { background: var(--navy); }
.fcols a { color: #94A3B8; }
.status.done { background: #DCFCE7; color: #166534; }
.status.failed { background: #FEE2E2; color: #991B1B; }
.status.running { background: #DBEAFE; color: #1E40AF; }
.panel { background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.05); }
.dash { background: var(--panel); min-height: calc(100vh - 64px); }
.drop { border-color: #CBD5E1; }
.drop.over { border-color: var(--blue); background: #EFF6FF; }
.hero:not(.xhero) { background: linear-gradient(180deg, #EEF4FF 0%, #fff 100%); }
.price.best { border-color: var(--blue); }

header.top.dark-top { background: rgba(11,18,32,.96); border-bottom: 1px solid rgba(148,163,184,.14); }
header.top.dark-top .logo, header.top.dark-top nav.links a:not(.btn) { color: #E2E8F0; }
.narrow .sub { margin-left: 0; max-width: none; }

/* ================= STUDIO: same dark theme as the landing page ================= */
body.studio { background: var(--navy); color: #E2E8F0; }
body.studio .dash { background: radial-gradient(1000px 420px at 50% -8%, #1E3A8A 0%, var(--navy) 60%); min-height: calc(100vh - 64px); padding-top: 28px; }
body.studio .panel { background: var(--navy2); border: 1px solid rgba(148,163,184,.18); box-shadow: 0 18px 50px rgba(0,0,0,.35); color: #E2E8F0; }
body.studio .panel h2 { color: #fff; }
body.studio .tabs { background: var(--navy); border-color: rgba(148,163,184,.25); }
body.studio .tab { color: #94A3B8; }
body.studio .tab.on { background: var(--blue); color: #fff; }
body.studio .drop { background: rgba(15,26,46,.6); border-color: rgba(148,163,184,.35); }
body.studio .drop strong { color: #E2E8F0; }
body.studio .drop span { color: #94A3B8; }
body.studio .drop.over { border-color: var(--accent); background: rgba(56,189,248,.08); }
body.studio textarea, body.studio .refine input, body.studio .opts select, body.studio .file-pill {
  background: #0A1222; color: #E2E8F0; border: 1px solid rgba(148,163,184,.3); font-family: "Inter", Arial, sans-serif; }
body.studio textarea::placeholder, body.studio .refine input::placeholder { color: #64748B; }
body.studio textarea:focus, body.studio .refine input:focus, body.studio .opts select:focus { outline: 2px solid rgba(56,189,248,.5); border-color: transparent; }
body.studio .opts label { color: #94A3B8; }
body.studio .chip { background: rgba(15,26,46,.8); color: #CBD5E1; border-color: rgba(148,163,184,.28); }
body.studio .chip:hover { border-color: var(--accent); color: #fff; }
body.studio .usage, body.studio .perks { color: #94A3B8; }
body.studio .perks b { color: #E2E8F0; }
body.studio .bar { background: rgba(148,163,184,.2); }
body.studio .bar i { background: linear-gradient(90deg, #2563EB, #14B8A6); }
body.studio .btn.ghost { background: transparent; color: #BFDBFE; border-color: rgba(147,197,253,.45); }
body.studio .btn.ghost:hover { background: rgba(37,99,235,.15); }
body.studio .msg { color: #94A3B8; }
body.studio .msg.err { color: #FCA5A5; }
body.studio .banner { background: rgba(245,158,11,.1); border-color: rgba(245,158,11,.35); color: #FCD34D; }
body.studio .empty { color: #94A3B8; border-color: rgba(148,163,184,.3); background: rgba(15,26,46,.5); }
body.studio .empty b { color: #E2E8F0; }
body.studio .batch-head .t { color: #fff; }
body.studio .batch-head .s { color: #94A3B8; }
body.studio .job { background: var(--navy2); border-color: rgba(148,163,184,.2); }
body.studio .job .img { background: #fff; }
body.studio .job .name { color: #F1F5F9; }
body.studio .job .meta div { color: #94A3B8 !important; }
body.studio .status.done { background: rgba(34,197,94,.15); color: #86EFAC; }
body.studio .status.failed { background: rgba(239,68,68,.15); color: #FCA5A5; }
body.studio .status.running, body.studio .status.queued { background: rgba(56,189,248,.15); color: #7DD3FC; }
body.studio .dd .menu { background: #0A1222; border-color: rgba(148,163,184,.3); }
body.studio .dd .menu a { color: #E2E8F0; }
body.studio .dd .menu a:hover { background: rgba(37,99,235,.2); }
body.studio .dd .menu .locked { color: #64748B; }
body.studio .modal { background: rgba(2,6,23,.7); }
body.studio .modal .box { background: var(--navy2); border: 1px solid rgba(148,163,184,.25); color: #E2E8F0; }
body.studio .modal .box h2 { color: #fff; }
body.studio .modal .box p, body.studio .modal .switch, body.studio .lbl { color: #94A3B8 !important; }
body.studio .modal input { background: #0A1222; color: #E2E8F0; border-color: rgba(148,163,184,.3); }
body.studio .gbtn { background: #fff; color: #0F172A; }
body.studio .or span { background: var(--navy2); color: #94A3B8; }
body.studio .or::before, body.studio .or::after { background: rgba(148,163,184,.25); }
body.studio .spin { border-color: rgba(37,99,235,.2); border-top-color: var(--blue); }
