/* ScriptifyAI — main stylesheet */
:root {
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-light: #EFF6FF;
  --blue-soft: #DBEAFE;
  --indigo: #4F46E5;
  --ink: #0F172A;
  --text: #1E293B;
  --muted: #64748B;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --green: #059669;
  --green-bg: #ECFDF5;
  --amber: #B45309;
  --amber-bg: #FFFBEB;
  --red: #DC2626;
  --red-bg: #FEF2F2;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 4px 20px rgba(15, 23, 42, .06);
  --shadow-lg: 0 12px 40px rgba(37, 99, 235, .10);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(37, 99, 235, .45); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.icon { flex-shrink: 0; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.center { text-align: center; justify-content: center; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 15px; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; text-decoration: none; white-space: nowrap; line-height: 1.2; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--blue-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--border-strong); }
.btn-outline:hover:not(:disabled) { border-color: var(--blue); background: var(--blue-light); color: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover:not(:disabled) { background: var(--bg-soft); }
.btn-danger { background: #fff; color: var(--red); border-color: #FECACA; }
.btn-danger:hover:not(:disabled) { background: var(--red-bg); }
.btn-sm { padding: 7px 12px; font-size: 13.5px; border-radius: 10px; gap: 6px; }
.btn-pill { border-radius: 999px; padding: 9px 26px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spinner { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 24px; color: var(--ink); letter-spacing: -.03em; }
.brand:hover { color: var(--ink); }
.brand b { color: var(--blue); font-weight: 800; }
.main-nav { display: flex; gap: 40px; margin: 0 auto; }
.main-nav a { color: var(--text); font-weight: 500; font-size: 15px; }
.main-nav a:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; padding: 7px; cursor: pointer; }
.nav-mobile-only { display: none; }

.account-menu { position: relative; }
.avatar-btn { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; }
.avatar-btn img, .avatar-fallback { width: 32px; height: 32px; border-radius: 50%; }
.avatar-fallback { display: grid; place-items: center; background: var(--blue-light); color: var(--blue); font-weight: 700; }
.avatar-name { font-weight: 600; font-size: 14px; }
.pro-badge { background: linear-gradient(135deg, var(--blue), var(--indigo)); color: #fff; font-size: 10.5px; font-weight: 800; padding: 2px 7px; border-radius: 999px; letter-spacing: .04em; }
.dropdown { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); min-width: 240px; padding: 6px; z-index: 50; }
.dropdown-head { padding: 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 4px; display: flex; flex-direction: column; }
.dropdown-head small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.dropdown a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--text); font-size: 14.5px; }
.dropdown a:hover { background: var(--bg-soft); color: var(--blue); }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; padding: 44px 0 40px; background: linear-gradient(180deg, #F8FAFF 0%, #FFFFFF 100%); }
.hero::before, .hero::after { content: ""; position: absolute; width: 260px; height: 260px; background: var(--blue-light); transform: rotate(45deg); border-radius: 40px; z-index: 0; }
.hero::before { left: -190px; top: 120px; }
.hero::after { right: -190px; top: 60px; }
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 820px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--blue-light); color: var(--blue-dark); font-weight: 600; font-size: 13.5px; padding: 7px 16px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(32px, 5.4vw, 52px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 14px; }
.hero h1 .accent { color: var(--blue); }
.hero-sub { font-size: clamp(15px, 2vw, 18px); color: var(--muted); margin-bottom: 26px; }
.doodle { position: absolute; z-index: 1; color: var(--blue); font-family: 'Segoe Script', 'Bradley Hand', cursive; font-size: 19px; pointer-events: none; }
.doodle-left { left: 3%; top: 70px; }
.doodle-right { right: 3%; top: 160px; }
.doodle span { display: block; transform: rotate(-12deg); color: var(--ink); margin-top: 4px; }

/* ── Tool input ── */
.tool { max-width: 680px; margin: 0 auto; }
.input-tabs { display: inline-flex; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 4px; gap: 2px; margin-bottom: 14px; }
.input-tabs button { border: 0; background: transparent; padding: 7px 14px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.input-tabs button[aria-selected="true"] { background: #fff; color: var(--blue); box-shadow: var(--shadow-sm); }
.url-bar { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 7px 7px 7px 18px; box-shadow: var(--shadow-lg); }
.url-bar:focus-within { border-color: var(--blue); }
.url-bar .icon { color: var(--blue); }
.url-bar input { flex: 1; min-width: 0; border: 0; outline: none; padding: 10px 6px; font-size: 15px; background: transparent; }
.url-bar .btn { border-radius: 13px; padding: 13px 24px; }
.field-error { color: var(--red); font-size: 13.5px; margin-top: 8px; text-align: left; }
.dropzone { display: block; border: 2px dashed var(--border-strong); border-radius: 18px; background: #fff; padding: 26px 20px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--blue); background: var(--blue-light); }
.dropzone .icon { display: block; color: var(--blue); margin: 0 auto 8px; }
.file-chip { display: flex; align-items: center; gap: 10px; background: var(--blue-light); border-radius: 12px; padding: 10px 14px; margin-top: 12px; text-align: left; }
.file-chip .name { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip button { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 4px; border-radius: 6px; }
.textarea, .input, .select { width: 100%; border: 1px solid var(--border-strong); border-radius: 12px; padding: 11px 14px; background: #fff; font-size: 15px; }
.textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.textarea:focus, .input:focus, .select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); margin-top: 12px; text-align: left; }

.platforms { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 40px; margin: 24px 0 18px; }
.platform { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13.5px; color: var(--text); background: none; border: 0; cursor: pointer; padding: 4px; border-radius: 10px; }
.platform-badge { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 13px; }
.pb-tiktok { background: #111; }
.pb-instagram { background: linear-gradient(135deg, #F58529, #DD2A7B, #8134AF); }
.pb-youtube { background: #FF0000; }
.pb-facebook { background: #1877F2; }
.platform-note { max-width: 560px; margin: 0 auto 16px; font-size: 13.5px; }
.credit-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--blue-light); color: var(--blue-dark); padding: 8px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }

/* ── Progress ── */
.progress-card { max-width: 680px; margin: 22px auto 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); text-align: left; }
.progress-head { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.progress-head .spinner { color: var(--blue); }
.progress-bar { height: 8px; border-radius: 999px; background: var(--blue-light); overflow: hidden; margin-top: 12px; }
.progress-bar > div { height: 100%; width: 0; background: var(--blue); border-radius: 999px; transition: width .3s; }
.progress-bar.indeterminate > div { width: 35%; animation: indet 1.4s ease-in-out infinite; }
@keyframes indet { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.steps-inline { display: flex; gap: 6px 16px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--muted); }
.steps-inline .done { color: var(--green); font-weight: 600; }
.steps-inline .active { color: var(--blue); font-weight: 700; }

/* ── Notices ── */
.notice { border-radius: 12px; padding: 12px 16px; font-size: 14.5px; margin: 12px 0; text-align: left; }
.notice-info { background: var(--blue-light); color: var(--blue-dark); }
.notice-warn { background: var(--amber-bg); color: var(--amber); border: 1px solid #FDE68A; }
.notice-error { background: var(--red-bg); color: #991B1B; border: 1px solid #FECACA; }
.notice-success { background: var(--green-bg); color: #065F46; }
.notice .btn-row { margin-top: 10px; }
.placeholder-tag { background: var(--amber-bg); color: var(--amber); padding: 1px 6px; border-radius: 6px; font-size: .9em; }

/* ── Results ── */
.results-section { padding: 10px 0 30px; }
.results { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 18px; }
.tabs { display: flex; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tab { flex: 1; min-width: max-content; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 18px; background: none; border: 0; border-bottom: 3px solid transparent; font-weight: 500; color: var(--text); cursor: pointer; font-size: 15px; }
.tab[aria-selected="true"] { color: var(--blue); border-bottom-color: var(--blue); font-weight: 700; background: linear-gradient(180deg, #fff, var(--blue-light)); border-radius: 12px 12px 0 0; }
.tab .icon { color: var(--blue); }
.tab-panel { padding: 18px 2px 4px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; font-size: 13px; }
.tag { display: inline-flex; align-items: center; gap: 5px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; color: var(--muted); font-weight: 500; }
.tag-blue { background: var(--blue-light); color: var(--blue-dark); border-color: var(--blue-soft); }
.tag-purple { background: #F5F3FF; color: #5B21B6; border-color: #DDD6FE; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.script-box { position: relative; background: #F8FAFF; border: 1px solid #E6EDFB; border-radius: var(--radius); padding: 20px 22px; font-size: 15.5px; line-height: 1.75; white-space: pre-wrap; word-wrap: break-word; max-height: 520px; overflow: auto; }
.script-box.rendered { white-space: normal; }
.script-box.rendered h2, .script-box.rendered h3 { font-size: 18px; margin: 1em 0 .4em; }
.script-box.rendered h1 { font-size: 21px; }
.script-box.rendered ul, .script-box.rendered ol { padding-left: 22px; margin: 0 0 1em; }
.script-box.rendered p:last-child { margin-bottom: 0; }
.script-box textarea { width: 100%; min-height: 320px; border: 0; background: transparent; outline: none; resize: vertical; line-height: 1.7; }
.seg { display: flex; gap: 12px; }
.seg time { color: var(--blue); font-size: 13px; font-weight: 600; min-width: 42px; padding-top: 3px; font-variant-numeric: tabular-nums; }
.empty-state { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty-state .icon { color: var(--blue); margin: 0 auto 10px; }

.cta-box { display: flex; gap: 16px; align-items: flex-start; background: #F5F8FF; border-radius: var(--radius); padding: 18px 22px; margin-top: 18px; }
.cta-box h3 { color: var(--blue-dark); font-size: 17px; }
.cta-box .bulb { color: #EAB308; margin-top: 2px; }

.controls-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 14px; }
.control label, .label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: var(--ink); }
.checks { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 4px 0 16px; font-size: 14.5px; }
.checks label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.checks input, .consent input { width: 17px; height: 17px; accent-color: var(--blue); }
.section-divider { border: 0; border-top: 1px solid var(--border); margin: 26px 0; }
.result-block { margin-top: 16px; }
.result-block h4 { font-size: 15px; margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; }
.hook-list { display: grid; gap: 10px; }
.hook { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.hook-num { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.hook-body { flex: 1; }
.hook-style { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.summary-grid { display: grid; gap: 4px; }
.summary-grid ul { margin: 0 0 6px; padding-left: 22px; }
.topic-ts { color: var(--blue); font-weight: 700; font-variant-numeric: tabular-nums; margin-right: 6px; }

/* ── Sections ── */
.section { padding: 70px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 42px; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 34px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; }
.steps { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 20px; align-items: start; }
.step { text-align: center; padding: 0 10px; }
.step-icon { width: 70px; height: 70px; border-radius: 50%; background: var(--blue-light); color: var(--blue); display: grid; place-items: center; margin: 0 auto 18px; }
.step h3 { font-size: 18px; display: flex; align-items: center; gap: 10px; justify-content: center; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 14px; display: grid; place-items: center; }
.step p { color: var(--muted); font-size: 14.5px; }
.step-arrow { color: var(--blue); margin-top: 28px; }

.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 26px; justify-content: center; }
.pricing-grid.pricing-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1180px; margin: 0 auto; gap: 18px; }
.pricing-4 .price-card { padding: 26px 20px; }
.pricing-4 .price { font-size: 34px; }
.pricing-4 .features li { font-size: 14px; }
.table-scroll { overflow-x: auto; }
.table-scroll .table { min-width: 640px; }
.locked { opacity: .55; }
.lock-tag { font-size: 10.5px; font-weight: 700; background: var(--blue-light); color: var(--blue-dark); padding: 1px 6px; border-radius: 999px; margin-left: 4px; }
.batch-list { display: grid; gap: 8px; margin-top: 12px; text-align: left; }
.batch-item { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 9px 12px; font-size: 14px; }
.batch-item .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.batch-item .st { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.batch-item .st.ok { color: var(--green); font-weight: 700; }
.batch-item .st.err { color: var(--red); font-weight: 700; white-space: normal; }
.batch-item button { background: none; border: 0; cursor: pointer; color: var(--muted); padding: 2px; }
.batch-item .open { color: var(--blue); font-weight: 700; font-size: 13px; }
.minutes-meter { display: inline-flex; align-items: center; gap: 8px; }
.minutes-meter .bar { width: 70px; height: 6px; background: var(--blue-soft); border-radius: 999px; overflow: hidden; }
.minutes-meter .bar i { display: block; height: 100%; background: var(--blue); }
.price-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 28px; box-shadow: var(--shadow); position: relative; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--blue); box-shadow: var(--shadow-lg); }
.price-card .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--blue); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.price-card h3 { font-size: 20px; }
.price { font-size: 42px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; margin: 6px 0 4px; }
.price small { font-size: 16px; color: var(--muted); font-weight: 500; }
.features { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 11px; flex: 1; }
.features li { display: flex; gap: 10px; font-size: 15px; }
.features .icon { color: var(--green); margin-top: 2px; }

.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.faq-q { width: 100%; display: flex; align-items: center; gap: 14px; background: none; border: 0; padding: 18px 20px; font-weight: 600; font-size: 15.5px; cursor: pointer; text-align: left; color: var(--ink); }
.faq-q .icon:first-child { color: var(--blue); }
.faq-q .chev { margin-left: auto; transition: transform .2s; color: var(--muted); }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { padding: 0 20px 18px 54px; color: var(--muted); font-size: 15px; }

/* ── Pages ── */
.page { padding: 50px 0 70px; }
.page-hero { text-align: center; padding: 50px 20px 10px; }
.page-hero h1 { font-size: clamp(30px, 4.5vw, 42px); font-weight: 800; }
.page-hero p { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 auto; }
.prose { max-width: 780px; margin: 0 auto; padding: 0 20px; }
.prose h2 { font-size: 22px; margin-top: 1.8em; }
.prose h3 { font-size: 18px; margin-top: 1.4em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-pad { padding: 22px 24px; }
.center-page { min-height: 55vh; display: grid; place-items: center; }
.status-card { padding: 40px 32px; text-align: center; max-width: 520px; }
.status-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 14px; }
.status-ok .status-icon { background: var(--green-bg); color: var(--green); }
.status-pending .status-icon { background: var(--blue-light); color: var(--blue); }
.status-error .status-icon { background: var(--red-bg); color: var(--red); }

.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 26px; }
.stat { padding: 18px 20px; }
.stat .label { color: var(--muted); font-weight: 500; }
.stat .value { font-size: 26px; font-weight: 800; color: var(--ink); }
.job-list { display: grid; gap: 10px; }
.job-row { display: flex; gap: 14px; align-items: center; padding: 14px 18px; }
.job-row .info { flex: 1; min-width: 0; }
.job-row .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-row .preview { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.st-completed { background: var(--green); }
.st-failed { background: var(--red); }
.st-queued, .st-processing { background: #F59E0B; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.table th { color: var(--muted); font-weight: 600; font-size: 13px; }
.danger-zone { border-color: #FECACA; }

/* ── Modal & toasts ── */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); }
.modal-card { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 34px 30px 26px; max-width: 420px; width: 100%; text-align: center; box-shadow: 0 20px 60px rgba(15, 23, 42, .25); }
.modal-close { position: absolute; top: 12px; right: 12px; background: none; border: 0; cursor: pointer; color: var(--muted); padding: 6px; border-radius: 8px; }
.modal-logo { display: flex; justify-content: center; margin-bottom: 12px; }
.btn-google { display: flex; width: 100%; background: #fff; border: 1px solid var(--border-strong); color: var(--ink); padding: 13px; margin: 18px 0 12px; border-radius: 12px; font-weight: 600; gap: 10px; justify-content: center; align-items: center; }
.btn-google:hover { background: var(--bg-soft); color: var(--ink); }
.toast-region { position: fixed; bottom: 20px; right: 20px; z-index: 90; display: grid; gap: 10px; max-width: calc(100vw - 40px); }
.toast { display: flex; gap: 10px; align-items: flex-start; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 14.5px; max-width: 400px; animation: toastIn .2s ease-out; }
.toast.success .icon { color: #34D399; }
.toast.error { background: #7F1D1D; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); padding: 46px 0 22px; background: #fff; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer-grid h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.footer-grid a:not(.brand) { display: block; color: var(--text); font-size: 14.5px; margin-bottom: 8px; }
.footer-grid a:not(.brand):hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--border); margin-top: 30px; padding-top: 18px; font-size: 13.5px; }

/* ── Responsive ── */
@media (max-width: 1100px) { .pricing-grid.pricing-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .doodle { display: none; }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); flex-direction: column; gap: 0; padding: 8px 20px 16px; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-mobile-only { display: block; }
  .avatar-name { display: none; }
  .brand { font-size: 21px; }
  .url-bar { flex-wrap: wrap; padding: 8px; border-radius: 16px; }
  .url-bar input { flex-basis: calc(100% - 40px); }
  .url-bar .btn { width: 100%; }
  .platforms { gap: 8px 22px; }
  .pricing-grid, .pricing-grid.pricing-4 { grid-template-columns: 1fr; }
  .results { padding: 10px; }
  .tab { padding: 12px 12px; font-size: 14px; }
  .script-box { padding: 16px; font-size: 15px; }
  .cta-box { flex-direction: column; }
  .faq-a { padding-left: 20px; }
  .section { padding: 50px 0; }
  .job-row { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .input-tabs { display: flex; width: 100%; }
  .input-tabs button { flex: 1; justify-content: center; padding: 8px 6px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Stage D: account plan switcher */
.plan-switch { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 6px 0 4px; }
.plan-mini { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px; background: #fff; }
.plan-mini.current { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.acct-meter { margin: 6px 0 14px; }
.acct-meter .mm-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.acct-meter .mm-bar { height: 8px; background: var(--blue-soft); border-radius: 999px; overflow: hidden; }
.acct-meter .mm-bar span { display: block; height: 100%; background: var(--blue); }

/* Batch: switch between scripts + download all */
.batch-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--blue-soft); border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; margin-bottom: 14px; }
.bn-switch { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.bn-label { display: flex; flex-direction: column; min-width: 0; font-size: 14px; line-height: 1.3; }
.bn-name { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-nav .btn[disabled] { opacity: .4; cursor: default; }
@media (max-width: 560px) { #downloadAllBtn { width: 100%; justify-content: center; } }

/* Stage E: SEO landing pages */
.breadcrumb { font-size: 13px; color: var(--muted); padding-top: 14px; }
.breadcrumb a { color: var(--blue); }
.seo-body { max-width: 820px; }
.seo-body h2 { font-size: 24px; margin: 34px 0 12px; }
.seo-body h2:first-child { margin-top: 0; }
.seo-body h3 { font-size: 18px; margin: 22px 0 8px; }
.seo-body p, .seo-body li { font-size: 16px; line-height: 1.7; color: var(--text); }
.seo-body ul, .seo-body ol { padding-left: 22px; margin: 10px 0 14px; }
.seo-steps li { margin-bottom: 10px; }
.seo-grid { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.seo-grid li { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.seo-grid li span { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.seo-cta { margin-top: 26px; }
.seo-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.seo-link { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.seo-link:hover { border-color: var(--blue); box-shadow: 0 6px 18px rgba(37, 99, 235, .10); }
.seo-link strong { display: block; font-size: 15px; }
.seo-link small { color: var(--muted); font-size: 13px; line-height: 1.45; }
.seo-link .platform-badge { flex: none; }
.pb-audio { background: #0EA5E9; }
.pb-hindi { background: #F97316; }
.pb-guide { background: #64748B; }
@media (max-width: 640px) {
  .seo-grid { grid-template-columns: 1fr; }
  .seo-body h2 { font-size: 21px; }
}
