/* video2doc - mobile-first stylesheet */
:root {
  --accent: #ff7a1a;
  --accent-dark: #e0630a;
  --ink: #1f2430;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #f7f7f8;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
img, video, svg { max-width: 100%; height: auto; }
body { overflow-x: clip; }  /* nothing may ever push the page sideways */

/* ---------- nav ---------- */
.topnav {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 0.6rem;
  padding: 0.7rem 0.9rem; background: #fff; border-bottom: 1px solid var(--line);
}
.brand { font-size: 1.1rem; font-weight: 800; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand span { color: var(--accent); }
.tagline { display: none; }  /* desktop-only */
.hide-mobile { display: none !important; }
.nav-links {
  margin-left: auto; display: flex; align-items: center;
  gap: 0.5rem; font-size: 0.8rem; white-space: nowrap;
}
.nav-links a { color: var(--ink); text-decoration: none; }
.nav-links .btn-sm { padding: 0.35rem 0.7rem; font-size: 0.85rem; }
.credits-pill {
  background: #ffedd5; color: #9a3412; border-radius: 999px;
  padding: 0.15rem 0.7rem; font-size: 0.78rem; font-weight: 700;
  white-space: nowrap;
}

.container { max-width: 1080px; margin: 0 auto; padding: 1rem; }

/* ---------- hero ---------- */
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 0.72rem; font-weight: 800; color: var(--accent-dark);
  background: #ffedd5; border-radius: 999px; padding: 0.25rem 0.8rem;
}
.hero-flex { display: flex; flex-direction: column; gap: 1.5rem; padding: 1.5rem 0 0.5rem; }
.hero h1 {
  font-size: clamp(1.9rem, 7vw, 3.1rem); line-height: 1.12;
  margin: 0.7rem 0 0.8rem; letter-spacing: -0.02em;
}
.hero-copy > p { color: var(--muted); max-width: 52ch; margin: 0 0 1.1rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.1rem; }
.hero-points { list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: 0.92rem; }
.hero-points li { padding-left: 1.5rem; position: relative; margin: 0.3rem 0; }
.hero-points li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800;
}
.source-strip {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem;
  margin-top: 1rem; padding: 0.6rem 0.8rem;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  font-size: 0.82rem; max-width: 520px;
}
.strip-label { color: var(--muted); font-weight: 600; margin-right: 0.1rem; }
.src-pill {
  display: inline-flex; align-items: center; gap: 0.32rem;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.18rem 0.65rem; background: #fafafa;
  font-size: 0.78rem; font-weight: 600; color: var(--ink); text-decoration: none;
}
.src-pill:hover { border-color: var(--accent); color: var(--accent-dark); }
.src-pill i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--c, #6b7280); }
.hero-graphic {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 0.8rem; box-shadow: 0 8px 30px rgba(31, 36, 48, 0.06);
}
.hero-graphic svg { display: block; width: 100%; }

/* ---------- cards & buttons ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 1.1rem; margin: 1.1rem 0;
}
.btn {
  display: inline-block; background: var(--accent); color: #fff; border: 0;
  padding: 0.75rem 1.3rem; border-radius: 10px; font-size: 1rem; font-weight: 600;
  cursor: pointer; text-decoration: none; text-align: center;
}
.btn:hover { background: var(--accent-dark); }
.btn-sm { padding: 0.4rem 0.9rem; font-size: 0.9rem; }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.hint { color: var(--muted); font-size: 0.85rem; }
.error { color: #b91c1c; font-weight: 600; }
.overview { font-size: 1.05rem; }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 1rem; }
.field span { display: block; font-weight: 600; margin-bottom: 0.35rem; }
input[type="file"] {
  width: 100%; padding: 0.7rem; border: 1px dashed var(--line);
  border-radius: 10px; background: #fafafa;
}
.auth-card { max-width: 440px; margin: 1.5rem auto; }
.auth-card input[type="email"], .auth-card input[type="password"] {
  width: 100%; padding: 0.7rem; border: 1px solid var(--line);
  border-radius: 10px; font-size: 1rem;
}

/* ---------- demo ---------- */
.demo-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1rem;
  justify-content: space-between;
}
.demo-head h2 { margin: 0; }
.demo-flex { display: flex; flex-direction: column; gap: 1rem; }
.demo-video video, .demo-full-video {
  width: 100%; border-radius: 10px; border: 1px solid var(--line);
  background: #000; display: block;
}
.demo-still {
  width: 100%; border-radius: 10px; border: 1px solid var(--line);
  display: block; box-shadow: 0 8px 30px rgba(31, 36, 48, 0.08);
}
.demo-preview { display: flex; flex-direction: column; gap: 0.8rem; }
.mini-step { display: flex; gap: 0.7rem; align-items: flex-start; }
.mini-step img {
  width: 100%; max-width: 340px; border: 1px solid var(--line);
  border-radius: 8px; margin-top: 0.3rem; display: block;
}
.demo-page-head { padding-top: 1rem; }
.demo-page-head h1 { font-size: clamp(1.45rem, 6vw, 2.2rem); margin: 0.6rem 0; line-height: 1.2; }

/* ---------- grids ---------- */
.how, .pricing-grid, .account-grid {
  display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1.1rem 0;
}
.how-step, .price-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; }
.how-step b { color: var(--accent-dark); }
.how-step p { margin: 0.3rem 0 0; color: var(--muted); font-size: 0.9rem; }
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.price-card h2 { margin-top: 0; }
.price-desc { color: var(--muted); }
.price-feats { color: var(--muted); font-size: 0.9rem; padding-left: 1.1rem; flex: 1; }
.price-big { font-size: 2rem; font-weight: 800; margin: 0.2rem 0 0; }
.price-per { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.price-unit { color: var(--muted); font-size: 0.82rem; margin: 0 0 0.4rem; }

/* ---------- tables (scroll on small screens) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.jobs { width: 100%; border-collapse: collapse; min-width: 560px; }
table.jobs th, table.jobs td {
  text-align: left; padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.badge { padding: 0.15rem 0.55rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.badge-done { background: #dcfce7; color: #166534; }
.badge-processing, .badge-queued { background: #ffedd5; color: #9a3412; }
.badge-error { background: #fee2e2; color: #991b1b; }
.link-btn { background: none; border: 0; color: #b91c1c; cursor: pointer; font-size: 0.9rem; padding: 0; }
.actions-col { white-space: nowrap; }

/* ---------- status/progress ---------- */
.progress { height: 10px; background: #f0f0f2; border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--accent); transition: width 0.5s; }
.stage { margin-top: 0.8rem; }

/* ---------- generated doc ---------- */
.doc h1 { border-bottom: 3px solid var(--accent); padding-bottom: 0.4rem; font-size: clamp(1.4rem, 4.5vw, 2rem); }
.prereq { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 0.8rem 1.2rem; margin: 1.2rem 0; }
.prereq h2 { margin-top: 0.4rem; font-size: 1.1rem; }
.steps-h { margin-top: 2rem; }
.step { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin: 1.1rem 0; }
.step-head { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
.step-head h2 { margin: 0; font-size: 1.15rem; }
.step-num {
  flex: none; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.step .time {
  color: var(--muted); font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.04em; margin: 0.5rem 0;
}
.step img { width: 100%; border: 1px solid var(--line); border-radius: 8px; margin: 0.5rem 0; }
.actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* ---------- banners ---------- */
.success-banner { background: #dcfce7; border: 1px solid #86efac; color: #166534; padding: 0.7rem 1.1rem; border-radius: 10px; }
.verify-banner {
  background: #fff7ed; border: 1px solid #fdba74; color: #9a3412;
  padding: 0.9rem 1.2rem; border-radius: 10px; margin: 1rem 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem;
}
.verify-banner form { margin-left: auto; }
.verify-banner em { font-style: normal; font-weight: 600; }

/* ---------- source integrations ---------- */
.upload-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.form-head { margin-top: 0; font-size: 1.05rem; }
.import-form { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.import-form input[type="url"], .import-form input[type="text"],
.source-form input[type="password"] {
  width: 100%; padding: 0.7rem; border: 1px solid var(--line);
  border-radius: 10px; font-size: 1rem;
}
.sources-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.source-row { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; }
.source-head { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.4rem; }
.source-actions { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.source-form { max-width: 420px; }

/* ---------- integrations (landing) ---------- */
.integrations h2 { margin: 0.5rem 0 0.4rem; }
.int-lead { color: var(--muted); max-width: 60ch; }
.platform-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem;
  margin: 1.1rem 0;
}
.platform-chip {
  display: flex; align-items: center; gap: 0.6rem;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 0.55rem 0.8rem; font-weight: 600; font-size: 0.92rem;
  background: #fafafa;
}
.platform-chip .mono {
  flex: none; width: 1.7rem; height: 1.7rem; border-radius: 7px;
  color: #fff; font-size: 0.72rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.int-modes { display: grid; grid-template-columns: 1fr; gap: 0.8rem; }
.int-mode { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px; padding: 0.8rem 1.1rem; }
.int-mode b { color: var(--accent-dark); }
.int-mode p { margin: 0.25rem 0 0; color: #6b7280; font-size: 0.9rem; }
.int-mode code { background: #fff; border: 1px solid #fed7aa; border-radius: 5px; padding: 0 4px; font-size: 0.8rem; }

@media (min-width: 780px) {
  .platform-grid { grid-template-columns: repeat(4, 1fr); }
  .int-modes { grid-template-columns: 1fr 1fr; }
}

/* ---------- use-case pages ---------- */
.uc-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1.2rem 0; }
.uc-card {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 1.1rem 1.3rem; text-decoration: none; color: var(--ink);
}
.uc-card:hover { border-color: var(--accent); }
.uc-card h2 { margin: 0 0 0.3rem; font-size: 1.1rem; }
.uc-card p { margin: 0 0 0.5rem; color: var(--muted); font-size: 0.9rem; }
.uc-more { color: var(--accent-dark); font-weight: 600; font-size: 0.88rem; }
.uc-cols { display: grid; grid-template-columns: 1fr; gap: 1rem; margin: 1.2rem 0; }
.uc-box { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.3rem; background: #fff; }
.uc-box h2 { margin-top: 0.3rem; }
.uc-problems { border-left: 4px solid #f87171; }
.uc-how { border-left: 4px solid var(--accent); }
.uc-example {
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px;
  padding: 1rem 1.3rem; margin: 1.2rem 0;
}
.uc-ctas { margin: 1.5rem 0 1rem; }
.uc-related { color: var(--muted); font-size: 0.92rem; margin-bottom: 2rem; }
.uc-related a { color: var(--accent-dark); }
.uc-teaser-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.uc-teaser-links a {
  border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.9rem;
  text-decoration: none; color: var(--ink); font-size: 0.9rem; font-weight: 600;
  background: #fafafa;
}
.uc-teaser-links a:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- use-case diagram ---------- */
.uc-diagram {
  margin: 1.4rem 0; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 1rem;
  box-shadow: 0 8px 30px rgba(31, 36, 48, 0.06);
}
.uc-diagram svg { display: block; width: 100%; max-width: 620px; margin: 0 auto; }
.uc-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.8rem; }
.uc-chip {
  background: #fff; border: 1px solid #fed7aa; border-radius: 999px;
  padding: 0.25rem 0.8rem; font-size: 0.8rem; font-weight: 700; color: #9a3412;
}

/* ---------- workspace buy options ---------- */
.buy-options { display: grid; grid-template-columns: 1fr; gap: 0.8rem; margin: 1rem 0 0.4rem; }
.buy-option {
  border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1.1rem;
  display: flex; flex-direction: column; gap: 0.15rem;
}
.buy-option.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.buy-option .buy-price { font-size: 1.3rem; font-weight: 800; }
.buy-option .buy-desc { color: var(--muted); font-size: 0.88rem; flex: 1; }
.buy-option .btn { margin-top: 0.5rem; align-self: flex-start; }
.empty-hint { text-align: center; padding: 1rem 0; }
@media (min-width: 780px) {
  .buy-options { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 780px) {
  .uc-grid { grid-template-columns: repeat(3, 1fr); }
  .uc-cols { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 780px) {
  .upload-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .import-form { border-top: 0; border-left: 1px solid var(--line); padding-top: 0; padding-left: 2rem; }
}

/* ---------- content pages & footer ---------- */
.content-page { max-width: 720px; margin: 0 auto; padding: 1.5rem 0; }
.content-page h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin: 0.6rem 0 1rem; }
.content-page h2 { font-size: 1.15rem; margin: 1.6rem 0 0.4rem; }
.content-page p, .content-page li { color: #374151; }
/* plain links only - never recolor button anchors (kills contrast) */
.content-page a:not(.btn):not(.uc-card) { color: var(--accent-dark); }
.news-item { border-left: 3px solid var(--accent); padding: 0.2rem 0 0.2rem 1rem; margin: 1.2rem 0; }
.news-item b { display: block; }
.news-date { color: var(--muted); font-size: 0.82rem; }
.news-item p { margin: 0.3rem 0 0; }
.contact-form textarea {
  width: 100%; padding: 0.7rem; border: 1px solid var(--line);
  border-radius: 10px; font-size: 1rem; font-family: inherit; resize: vertical;
}
.contact-form input[type="text"], .contact-form input[type="email"] {
  width: 100%; padding: 0.7rem; border: 1px solid var(--line);
  border-radius: 10px; font-size: 1rem;
}
.hp-field { position: absolute; left: -5000px; opacity: 0; height: 0; }
.notfound { text-align: center; padding: 3rem 0; }
.notfound-code { font-size: 5rem; font-weight: 800; color: var(--accent); margin: 0; line-height: 1; }
.notfound .hero-ctas { justify-content: center; }

.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 3rem; }
.footer-inner {
  max-width: 1080px; margin: 0 auto; padding: 2rem 1rem 1rem;
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 34ch; }
.footer-col { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.92rem; }
.footer-col b { margin-bottom: 0.3rem; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--accent-dark); }
.footer-base {
  max-width: 1080px; margin: 0 auto; padding: 1rem;
  color: var(--muted); font-size: 0.82rem; border-top: 1px solid var(--line);
}
@media (min-width: 780px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1fr 1fr; padding: 2.5rem 1.5rem 1.5rem; }
  .footer-base { padding: 1rem 1.5rem; }
}
.dev-banner { background: #fef9c3; border: 1px solid #fde047; color: #854d0e; padding: 0.7rem 1.1rem; border-radius: 10px; }
.big-number { font-size: 2.4rem; font-weight: 800; margin: 0.2rem 0; color: var(--accent-dark); }

/* ---------- desktop ---------- */
@media (min-width: 780px) {
  .container { padding: 2rem 1.5rem; }
  .topnav { padding: 0.9rem 2rem; gap: 1rem; }
  .brand { font-size: 1.3rem; }
  .tagline { display: inline; color: var(--muted); font-size: 0.9rem; }
  .hide-mobile { display: inline !important; }
  .nav-links { gap: 1rem; font-size: 0.95rem; }
  .nav-links .btn-sm { font-size: 0.9rem; padding: 0.4rem 0.9rem; }
  .hero-flex { flex-direction: row; align-items: center; gap: 2.5rem; padding-top: 2.5rem; }
  .hero-copy { flex: 1 1 52%; }
  .hero-graphic { flex: 1 1 48%; }
  .card { padding: 1.4rem 1.6rem; margin: 1.4rem 0; }
  .demo-flex { flex-direction: row; }
  .demo-video { flex: 1 1 55%; }
  .demo-preview { flex: 1 1 45%; }
  .how { grid-template-columns: repeat(4, 1fr); }
  .pricing-grid { grid-template-columns: repeat(4, 1fr); }
  .account-grid { grid-template-columns: repeat(3, 1fr); }
}
