/* VideoDropper — original stylesheet. Mobile-first. */
/* Inter is self-hosted (single 47 KB variable woff2, latin subset) — no Google Fonts requests. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin.woff2') format('woff2');
}
:root {
  --violet: #7c3aed;
  --indigo: #4f46e5;
  --pink: #ec4899;
  --grad: linear-gradient(135deg, #7c3aed 0%, #4f46e5 55%, #ec4899 100%);
  --ink: #0f172a;
  --muted: #475569;
  --faint: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --soft: #f8fafc;
  --soft2: #f1f5f9;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 5.5vw, 3.1rem); font-weight: 800; margin: .6rem 0 .8rem; }
h2 { font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 800; margin: 0 0 .5rem; text-align: center; }
h3 { font-size: 1.08rem; font-weight: 700; margin: 0 0 .35rem; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.1rem; }
.section { padding: 3.2rem 0; }
.section-sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 2rem; }
.subtitle { color: var(--muted); font-size: 1.08rem; max-width: 640px; margin: 0 auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .65rem; padding-bottom: .65rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.wordmark { display: inline-flex; }
.wm-dark { color: var(--ink); }
.wm-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.header-actions { display: flex; align-items: center; gap: .6rem; }
.report-link { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .92rem; font-weight: 600; padding: .45rem .6rem; border-radius: 999px; }
.report-link:hover { background: var(--soft2); text-decoration: none; color: var(--ink); }
.share-btn { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: .92rem; font-weight: 600; padding: .45rem .85rem; border-radius: 999px; cursor: pointer; }
.share-btn:hover { border-color: var(--violet); color: var(--violet); }

/* Hero */
.hero { background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%); padding: 2.2rem 0 2.6rem; border-bottom: 1px solid var(--line); }
.hero-simple { padding-bottom: 1.6rem; }
.hero-inner { text-align: center; }
.tool-tabs { display: flex; gap: .45rem; overflow-x: auto; padding: .35rem; margin: 0 auto 1.4rem; max-width: 100%; scrollbar-width: none; }
.tool-tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; padding: .55rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--muted); font-weight: 600; font-size: .95rem; }
.tab:hover { text-decoration: none; border-color: var(--violet); color: var(--violet); }
.tab.active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 6px 18px rgba(124, 58, 237, .35); }
.dl-form { display: flex; align-items: center; gap: .4rem; max-width: 640px; margin: 1.6rem auto .7rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .4rem .4rem 1rem; box-shadow: var(--shadow); }
.dl-form:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 58, 237, .12), var(--shadow); }
.dl-form.error { border-color: #dc2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, .12); }
.input-icon { color: var(--faint); display: flex; flex: none; }
.dl-form input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1rem; color: var(--ink); background: transparent; }
.dl-form input::placeholder { color: #64748b; } /* contrast fix: #94a3b8 on white was 2.9:1, fails AA; #64748b is 4.8:1 */
.paste-btn { flex: none; border: 0; cursor: pointer; font: inherit; font-weight: 700; color: #fff; background: var(--grad); border-radius: 999px; padding: .7rem 1.4rem; }
.paste-btn:hover { filter: brightness(1.08); }
.form-error { color: #dc2626; font-size: .92rem; font-weight: 600; margin: .2rem 0 0; }
.hero-note { color: var(--faint); font-size: .86rem; margin: .9rem 0 0; }
.hero-note a { color: var(--faint); text-decoration: underline; }

/* Loading */
.loading { margin: 1.6rem auto 0; text-align: center; color: var(--muted); }
.spinner { display: inline-block; color: var(--violet); animation: spin 1s linear infinite; }
.spinner svg { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Results */
.results { max-width: 720px; margin: 1.8rem auto 0; text-align: left; }
.result-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); margin-bottom: 1.2rem; }
.result-card video, .result-card img { display: block; width: 100%; background: #000; }
.result-meta { padding: .9rem 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.result-label { font-weight: 700; font-size: .95rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-left: auto; }
.btn-grad, .btn-ghost { display: inline-flex; align-items: center; gap: .4rem; font: inherit; font-weight: 700; font-size: .92rem; border-radius: 999px; padding: .55rem 1rem; cursor: pointer; text-decoration: none; }
.btn-grad { background: var(--grad); color: #fff; border: 0; }
.btn-grad:hover { filter: brightness(1.08); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); text-decoration: none; }
.btn-ghost:disabled { opacity: .55; cursor: wait; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.results-head h2 { text-align: left; margin: 0; font-size: 1.3rem; }

/* Error card */
.error-card { max-width: 560px; margin: 1.8rem auto 0; text-align: center; border: 1px solid #fecaca; background: #fef2f2; border-radius: var(--radius); padding: 2rem 1.4rem; }
.error-icon { display: inline-flex; color: #dc2626; background: #fee2e2; border-radius: 50%; padding: .8rem; margin-bottom: .8rem; }
.error-card h2 { font-size: 1.35rem; margin-bottom: .4rem; }
.error-card p { color: var(--muted); margin: 0 0 1.2rem; }

/* Results-open state: hide hero copy, form and page sections */
body.results-open .hero-copy,
body.results-open .dl-form,
body.results-open .hero-note,
body.results-open main > .section { display: none; }
body.results-open .hero { border-bottom: 0; }

/* Steps + phone mockups (pure CSS) */
.steps-grid { display: grid; gap: 1.4rem; }
.step-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; background: #fff; box-shadow: var(--shadow); text-align: center; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; margin: .9rem 0 .5rem; }
.step-card h3 { margin-bottom: .3rem; }
.step-card p { color: var(--muted); margin: 0; font-size: .96rem; }
.phone { width: 170px; height: 300px; margin: 0 auto; border: 3px solid #0f172a; border-radius: 28px; background: #fff; overflow: hidden; position: relative; box-shadow: 0 14px 30px rgba(15, 23, 42, .16); }
.phone-notch { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 64px; height: 8px; border-radius: 99px; background: #0f172a; z-index: 2; }
.ph-screen { padding: 26px 12px 12px; display: flex; flex-direction: column; gap: 10px; height: 100%; }
.ph-top { display: flex; gap: 5px; }
.ph-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.ph-post { display: flex; flex-direction: column; gap: 10px; }
.ph-thumb { height: 120px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; }
.ph-grad-a { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.ph-grad-b { background: linear-gradient(135deg, #4f46e5, #06b6d4); }
.ph-line { height: 9px; border-radius: 99px; background: var(--soft2); }
.w80 { width: 80%; } .w70 { width: 70%; } .w60 { width: 60%; } .w50 { width: 50%; }
.ph-share, .ph-dlbtn { display: flex; align-items: center; justify-content: center; gap: .35rem; border-radius: 999px; padding: .5rem; font-size: .8rem; font-weight: 700; }
.ph-share { border: 1px solid var(--line); color: var(--muted); }
.ph-dlbtn { background: var(--grad); color: #fff; }
.ph-pill { display: flex; align-items: center; gap: .4rem; border: 1px solid var(--line); border-radius: 999px; padding: .5rem .7rem; font-size: .72rem; color: var(--faint); overflow: hidden; }
.ph-url { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .68rem; }
.ph-pastebtn { background: var(--grad); color: #fff; text-align: center; border-radius: 999px; padding: .5rem; font-size: .8rem; font-weight: 700; }

/* Step 1 — Instagram-style screen */
.ph-ig-top { display: flex; align-items: center; gap: 6px; }
.ph-avatar { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #f59e0b, #ec4899, #7c3aed); flex: none; border: 2px solid #fff; box-shadow: 0 0 0 1.5px #ec4899; }
.ph-username { font-size: .78rem; font-weight: 700; color: var(--ink); }
.ph-more { margin-left: auto; color: var(--muted); letter-spacing: 1px; font-size: .8rem; line-height: 1; }
.ph-media { height: 104px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; position: relative; flex: none; }
.ph-dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .64rem; font-weight: 700; padding: 2px 6px; border-radius: 99px; }
.ph-hd { position: absolute; left: 6px; top: 6px; background: #fff; color: #7c3aed; font-size: .6rem; font-weight: 800; padding: 2px 5px; border-radius: 6px; }
.ph-actions { display: flex; align-items: center; gap: 12px; color: #0f172a; }
.ph-actions svg { display: block; }
.ph-act-hot { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 0 0 3px #ede9fe, 0 4px 10px rgba(124, 58, 237, .35); }
.ph-bookmark { margin-left: auto; display: inline-flex; }
.ph-sheet { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 6px; display: grid; gap: 3px; }
.ph-sheet-row { display: flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--muted); padding: 4px 7px; border-radius: 8px; }
.ph-sheet-row.hot { background: #ede9fe; color: #6d28d9; font-weight: 700; }
.ph-sheet-row.hot svg:last-child { margin-left: auto; color: #16a34a; }

/* Step 2 — VideoDropper screen */
.ph-vd-top { display: flex; align-items: center; gap: 6px; }
.ph-logo-dot { width: 16px; height: 16px; border-radius: 5px; background: var(--grad); flex: none; }
.ph-brand { font-size: .8rem; font-weight: 800; color: var(--ink); }
.ph-tabs { display: flex; gap: 4px; }
.ph-tab { font-size: .66rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--soft2); color: var(--muted); }
.ph-tab.on { background: var(--grad); color: #fff; }
.ph-ok { display: flex; align-items: center; justify-content: center; gap: 5px; color: #15803d; font-size: .72rem; font-weight: 700; } /* contrast fix: #16a34a on white was 3.3:1, fails AA; #15803d is 4.9:1 */

/* Step 3 — quality + download success */
.ph-quality { display: flex; gap: 6px; }
.ph-q { flex: 1; text-align: center; font-size: .7rem; font-weight: 700; padding: 5px 0; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.ph-q.on { background: var(--grad); color: #fff; border-color: transparent; }
.ph-success { display: flex; align-items: center; justify-content: center; gap: 6px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; font-size: .7rem; font-weight: 700; padding: 7px 6px; border-radius: 10px; white-space: nowrap; }

/* Related guides (internal linking) */
.related-guides { background: var(--soft); }
.related-list { display: grid; gap: .6rem; max-width: 760px; margin: 0 auto; }
.related-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .85rem 1.1rem; font-weight: 700; color: var(--ink); }
.related-link span:last-child { color: var(--violet); flex: none; }
.related-link:hover { text-decoration: none; border-color: #c7d2fe; }
.related-link:hover span:first-child { color: var(--violet); }

/* Feature / card grids */
.features-grid, .dl-grid, .built-grid, .devices-grid { display: grid; gap: 1.2rem; }
.feature-card, .dl-card, .built-card, .device-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; background: #fff; }
.feature-card p, .dl-card p, .built-card p, .device-card p { color: var(--muted); margin: 0; font-size: .96rem; }
.dl-icon, .built-icon { display: inline-flex; color: #fff; background: var(--grad); border-radius: 12px; padding: .55rem; margin-bottom: .7rem; }
.dl-card ul { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .35rem; }
.dl-card li { display: flex; align-items: center; gap: .45rem; font-size: .92rem; color: var(--muted); }
.dl-card li svg { color: #16a34a; flex: none; }
.device-icon { display: inline-flex; color: var(--violet); background: #ede9fe; border-radius: 12px; padding: .6rem; margin-bottom: .7rem; }
.device-card ol { margin: .6rem 0 0; padding-left: 1.2rem; color: var(--muted); font-size: .96rem; display: grid; gap: .35rem; }
.features { background: var(--soft); }
.builtfor { background: var(--soft); }

/* FAQ */
.faq-grid { display: grid; gap: 1rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; background: #fff; }
.faq-item p { color: var(--muted); margin: 0; font-size: .96rem; }

/* Prose / blog / legal */
.prose { max-width: 760px; }
.prose h2 { text-align: left; font-size: 1.35rem; margin: 2rem 0 .5rem; }
.prose p { color: var(--muted); margin: 0 0 1rem; }
.prose ul { color: var(--muted); }
.prose .lead { font-size: 1.12rem; color: var(--ink); }
.crumbs { color: var(--faint); font-size: .9rem; margin-bottom: .4rem; }
.cta-box { background: #ede9fe; border: 1px solid #ddd6fe; border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-top: 2rem; }
.cta-box p { color: var(--ink); margin: 0; }
.blog-grid { display: grid; gap: 1.2rem; }
.blog-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; background: #fff; }
.blog-card h3 { font-size: 1.12rem; }
.blog-card h3 a { color: var(--ink); }
.blog-card h3 a:hover { color: var(--violet); }
.blog-card p { color: var(--muted); font-size: .95rem; margin: .3rem 0 .8rem; }
.read-more { font-weight: 700; font-size: .92rem; }

/* Contact form */
.contact-form { display: grid; gap: 1rem; max-width: 560px; }
.contact-form label { display: grid; gap: .35rem; font-weight: 600; font-size: .95rem; }
.contact-form input, .contact-form textarea { font: inherit; border: 1px solid var(--line); border-radius: 12px; padding: .7rem .9rem; width: 100%; }
.contact-form input:focus, .contact-form textarea:focus { outline: 0; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 58, 237, .12); }
.form-note { color: var(--faint); font-size: .88rem; margin: 0; }

/* Footer */
.site-footer { background: #0f172a; color: #cbd5e1; margin-top: 1rem; }
.footer-grid { display: grid; gap: 2rem; padding-top: 3rem; padding-bottom: 2.4rem; }
.footer-brand p { font-size: .95rem; margin: .9rem 0 0; max-width: 320px; }
.footer-grid .brand .wm-dark { color: #fff; }
.site-footer h3 { color: #fff; font-size: .98rem; margin-bottom: .7rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.site-footer ul a { color: #cbd5e1; font-size: .93rem; }
.site-footer ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; }
.bottom-inner { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; justify-content: space-between; padding-top: 1.1rem; padding-bottom: 1.1rem; }
.bottom-inner p { margin: 0; font-size: .86rem; color: #94a3b8; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #0f172a; color: #fff; font-weight: 600; font-size: .92rem; padding: .7rem 1.2rem; border-radius: 999px; box-shadow: var(--shadow); z-index: 100; }

/* Responsive */
@media (min-width: 640px) {
  .steps-grid, .dl-grid, .built-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .steps-grid, .dl-grid, .built-grid { grid-template-columns: repeat(3, 1fr); }
  .devices-grid { grid-template-columns: repeat(3, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
  .tool-tabs { justify-content: center; }
}
@media (max-width: 560px) {
  .report-link span { display: none; }
  .share-btn span { display: none; }
  .share-btn { padding: .45rem .6rem; }
}
