/* macSubtitleOCR website — static, hand-tuned, and build-free */
:root {
  --bg: #0c0f14;
  --bg-alt: #12161d;
  --bg-card: #161b23;
  --text: #eef2f7;
  --muted: #a6b0bd;
  --dim: #748091;
  --accent: #58a6ff;
  --accent-hover: #82bcff;
  --rule: #28313d;
  --code-bg: #0e1218;
  --pgs: #7cb8ff;
  --vobsub: #8dd9b3;
  --container: 1040px;
}
* { box-sizing: border-box; }
html {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}
body { margin: 0; }
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
a { color: var(--accent); text-decoration: none; text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); text-decoration: underline; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--accent-hover); outline-offset: 3px; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.92em; }
.skip-link {
  position: fixed; z-index: 100; top: 0; left: 16px; padding: 9px 14px;
  border-radius: 0 0 7px 7px; background: var(--accent); color: #07101a;
  font-weight: 700; transform: translateY(-120%);
}
.skip-link:focus { transform: translateY(0); color: #07101a; }
.topnav {
  position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(40, 49, 61, 0.9);
  background: rgba(12, 15, 20, 0.88); backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
}
.topnav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 57px; }
.topnav-brand {
  display: inline-flex; align-items: center; gap: 10px; color: var(--text);
  font-size: 1rem; font-weight: 720; letter-spacing: -0.015em; white-space: nowrap;
}
.topnav-brand:hover { color: var(--text); text-decoration: none; }
.topnav-brand img { border-radius: 6px; }
.topnav-links { display: flex; align-items: center; gap: 22px; margin: 0; padding: 0; list-style: none; font-size: 0.875rem; }
.topnav-links a { color: var(--muted); }
.topnav-links a:hover { color: var(--text); text-decoration: none; }
.hero {
  padding: 80px 0 56px; border-bottom: 1px solid var(--rule);
  background: radial-gradient(900px 430px at 80% -8%, rgba(88, 166, 255, 0.18), transparent 62%), linear-gradient(180deg, #101620 0%, var(--bg) 76%);
}
.eyebrow, .section .eyebrow {
  margin: 0 0 14px; color: var(--accent); font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.hero h1, .guide-hero h1 {
  max-width: 900px; margin: 0 0 22px; font-size: clamp(2.4rem, 6vw, 4.55rem);
  font-weight: 760; letter-spacing: -0.055em; line-height: 1.03;
}
.subtagline { max-width: 770px; margin: 0 0 30px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.2rem); line-height: 1.62; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0 0 15px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 10px 18px; border: 1px solid var(--rule); border-radius: 9px;
  background: transparent; color: var(--text); font-size: 0.94rem; font-weight: 650;
}
.button:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.button.primary { border-color: var(--accent); background: var(--accent); color: #07101a; }
.button.primary:hover { border-color: var(--accent-hover); background: var(--accent-hover); color: #07101a; }
.text-link { font-size: 0.94rem; font-weight: 600; }
.version { margin: 0; color: var(--dim); font-size: 0.84rem; }
.hero-shot { max-width: 940px; margin: 46px 0 0; }
.hero-shot img, .secondary-shot img { display: block; width: 100%; height: auto; }
figcaption { margin-top: 10px; color: var(--dim); font-size: 0.82rem; text-align: center; }
.section { padding: 72px 0; border-bottom: 1px solid var(--rule); }
.section.alt { background: var(--bg-alt); }
.section h2 {
  max-width: 820px; margin: 0 0 24px; font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 740; letter-spacing: -0.035em; line-height: 1.15;
}
.section h3 { margin: 0 0 10px; font-size: 1.12rem; line-height: 1.35; }
.section p { max-width: 720px; }
.section p code, .section li code {
  padding: 2px 6px; border: 1px solid var(--rule); border-radius: 4px;
  background: var(--code-bg); color: #cce3ff;
}
.intent-grid, .benefit-grid, .faq-grid, .steps-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 34px; margin-top: 32px;
}
.intent-grid article { padding: 22px 0 0; border-top: 2px solid var(--pgs); }
.intent-grid article:nth-child(2) { border-color: var(--vobsub); }
.intent-format { margin: 0 0 8px; color: var(--dim); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.intent-grid h3 { font-size: 1.35rem; }
.intent-grid p:not(.intent-format) { color: var(--muted); }
.intent-grid a { font-weight: 650; }
.workflow-diagram {
  display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
  gap: 22px; align-items: center; margin: 38px 0 0;
}
.workflow-file {
  min-height: 235px; padding: 24px 26px; border: 1px solid var(--rule);
  border-top: 2px solid var(--pgs); border-radius: 10px; background: var(--code-bg);
}
.workflow-file.output-file { border-top-color: var(--vobsub); }
.workflow-file .file-label { margin: 0 0 8px; color: var(--dim); font-size: 0.8rem; }
.workflow-file h3 { color: var(--text); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1.16rem; font-weight: 550; }
.workflow-file ul { margin: 18px 0 0; padding: 0; color: var(--muted); list-style: none; font-size: 0.9rem; }
.workflow-file li + li { margin-top: 6px; }
.workflow-arrow { display: grid; justify-items: center; gap: 6px; color: var(--muted); font-size: 0.78rem; text-align: center; }
.workflow-arrow b { color: var(--accent); font-size: 2rem; font-weight: 400; }
.workflow-diagram figcaption { grid-column: 1 / -1; max-width: 720px; justify-self: center; }
.steps-grid { gap: 30px 38px; }
.steps-grid article { position: relative; min-height: 118px; padding-left: 52px; }
.steps-grid span {
  position: absolute; top: 0; left: 0; display: grid; width: 34px; height: 34px;
  place-items: center; border: 1px solid var(--accent); border-radius: 50%;
  color: var(--accent); font-size: 0.85rem; font-weight: 750;
}
.steps-grid p, .benefit-grid p, .faq-grid p { margin: 0; color: var(--muted); }
.secondary-shot { max-width: 820px; margin: 42px 0 0; }
.benefit-grid article, .faq-grid article { min-width: 0; padding-top: 22px; border-top: 1px solid var(--rule); }
.benefit-grid h3, .faq-grid h3 { font-size: 1.08rem; }
.download-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr); gap: 56px; align-items: start; }
.download-layout > div > p:not(.eyebrow) { color: var(--muted); }
.requirement { margin-top: 26px; font-size: 0.92rem; }
.requirement strong { color: var(--text); }
.source-install { padding: 22px; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg-card); }
.source-install > p { margin-bottom: 0; color: var(--dim); font-size: 0.85rem; }
.code {
  margin: 16px 0 0; padding: 16px 18px; overflow-x: auto; border: 1px solid var(--rule);
  border-radius: 8px; background: var(--code-bg); color: var(--text); font-size: 0.78rem; line-height: 1.65;
}
.code .dim { color: var(--dim); }
.final-cta { background: linear-gradient(180deg, var(--bg), #101722); }
.final-cta h2 { margin-bottom: 10px; }
.final-cta p { margin: 0 0 24px; color: var(--muted); }
.footer { padding: 34px 0 42px; color: var(--muted); font-size: 0.86rem; }
.footer p { margin: 0 0 6px; text-align: center; }

/* Focused guide pages */
.guide-hero { padding: 70px 0 48px; border-bottom: 1px solid var(--rule); background: linear-gradient(180deg, #101620, var(--bg)); }
.guide-hero h1 { max-width: 860px; font-size: clamp(2.3rem, 5.5vw, 4rem); }
.breadcrumbs { margin: 0 0 24px; color: var(--dim); font-size: 0.84rem; }
.breadcrumbs a { color: var(--muted); }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 64px; align-items: start; }
.guide-content h2 { margin-top: 48px; }
.guide-content h2:first-child { margin-top: 0; }
.guide-content h3 { margin-top: 28px; }
.guide-content p, .guide-content li { color: var(--muted); }
.guide-content strong { color: var(--text); }
.guide-content ol, .guide-content ul { padding-left: 22px; }
.guide-content li + li { margin-top: 10px; }
.guide-note { margin: 28px 0; padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--bg-card); }
.guide-note p { margin: 0; }
.guide-nav { position: sticky; top: 86px; padding: 20px; border: 1px solid var(--rule); border-radius: 10px; background: var(--bg-card); }
.guide-nav h2 { margin: 0 0 12px; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; }
.guide-nav ul { margin: 0; padding: 0; list-style: none; font-size: 0.88rem; }
.guide-nav li + li { margin-top: 9px; }
.guide-nav a { color: var(--muted); }
.guide-nav a:hover { color: var(--text); }
.guide-table { width: 100%; margin: 24px 0; border-collapse: collapse; font-size: 0.92rem; }
.guide-table th, .guide-table td { padding: 11px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.guide-table th { color: var(--text); }
.guide-table td { color: var(--muted); }

@media (max-width: 800px) {
  .topnav .container { align-items: flex-start; flex-direction: column; gap: 6px; padding-block: 10px; }
  .topnav-links { width: 100%; gap: 14px; overflow-x: auto; padding-bottom: 2px; }
  .topnav-links li { flex: 0 0 auto; }
  .workflow-diagram { grid-template-columns: 1fr; }
  .workflow-arrow b { transform: rotate(90deg); }
  .workflow-diagram figcaption { grid-column: 1; }
  .download-layout, .guide-layout { grid-template-columns: 1fr; gap: 38px; }
  .guide-nav { position: static; order: -1; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 32px, var(--container)); }
  .hero { padding: 56px 0 42px; }
  .section { padding: 54px 0; }
  .intent-grid, .benefit-grid, .faq-grid, .steps-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-shot { margin-top: 34px; }
  .workflow-file { min-height: auto; }
  .source-install { padding: 18px; }
}
@media (max-width: 420px) {
  .topnav-brand span { display: none; }
  .button { width: 100%; }
  .cta .text-link { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
