:root {
  --bg: #0f0f10;
  --card: #18181b;
  --surface-muted: #222226;
  --fg: #f4f4f5;
  --muted: #a1a1aa;
  --primary: #4ade80;
  --primary-hover: #22c55e;
  --primary-fg: #052e16;
  --accent: #f5d000;
  --border: #2e2e33;
  --pure-black: #000000;
  --pure-white: #ffffff;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, .24);
  --font-heading: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

html[data-theme="light"] {
  --bg: #ffffff;
  --card: #ffffff;
  --surface-muted: #f4f4f5;
  --fg: #0f0f10;
  --muted: #52525b;
  --primary: #15803d;
  --primary-hover: #166534;
  --primary-fg: #ffffff;
  --border: #e4e4e7;
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, .08);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  overflow-x: clip;
}

main { flex: 1; padding-bottom: 64px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.2;
}
.brand-icon { border-radius: 8px; flex-shrink: 0; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-link:hover { background: var(--surface-muted); color: var(--fg); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  transition: background .15s;
}
.icon-btn:hover { background: var(--surface-muted); }
html[data-theme="dark"] .icon-moon { display: none; }
html[data-theme="light"] .icon-sun { display: none; }
.locale-menu, .mobile-menu { position: relative; }
.mobile-only { display: none; }
.dropdown-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 188px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 4px;
  z-index: 60;
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  text-decoration: none;
  color: var(--fg);
}
.dropdown-item:hover, .dropdown-item.is-active { background: var(--surface-muted); }
.dropdown-item.is-active { font-weight: 600; color: var(--primary); }

/* Tool & Player Stage */
.tool-section { padding: 16px 24px 0; }
.tool-section.is-panel-only { padding: 0; }
.tool-shell { position: relative; max-width: 1280px; margin: 0 auto; }
.tool-shell[data-aspect="9x16"]:not(.is-fullscreen) { display: flex; flex-direction: column; gap: 24px; }

.stage-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100svh - 88px);
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--pure-black);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.tool-shell[data-aspect="9x16"]:not(.is-fullscreen) .stage-wrap {
  aspect-ratio: 9 / 16;
  width: clamp(200px, 28svh, 260px);
  max-height: none;
  margin: 0 auto;
}
.stage-wrap.is-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 999 !important;
  width: 100vw !important;
  height: 100dvh !important;
  max-height: none !important;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
.stage-wrap.is-idle { cursor: none; }
.stage-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--pure-black); }
.stage-glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 100%, rgba(74, 222, 128, .06) 0%, transparent 60%); }
.stage-wrap.is-fullscreen .stage-glow { display: none; }
.stage-surface-btn { position: absolute; inset: 0; z-index: 10; }
.aspect-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0f0f10;
  color: #f4f4f5;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.aspect-pill-res { color: #4ade80; }

.hero-intro-overlay { display: none; position: absolute; inset: 0; z-index: 12; pointer-events: none; transition: opacity .25s; }
.stage-wrap.is-idle .hero-intro-overlay, .stage-wrap.is-idle .player-controls { opacity: 0; pointer-events: none; }
.hero-intro-inner { height: 100%; display: flex; align-items: center; padding: 40px 44px 96px; }
.hero-intro-copy { max-width: 560px; padding-right: 24px; }
.hero-display-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(36px, 4.4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--pure-white);
  white-space: pre-line;
}
.hero-subtitle { margin: 16px 0 0; max-width: 440px; font-size: 17px; line-height: 1.55; color: #a1a1aa; }
.trust-row { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.trust-row.is-center { justify-content: center; }
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9999px;
  border: 1px solid #2e2e33;
  background: #18181b;
  color: #f4f4f5;
  font-size: 12px;
}
.trust-pill svg { color: #4ade80; flex-shrink: 0; }
.trust-pill.is-surface { border-color: var(--border); background: var(--surface-muted); color: var(--fg); }
.trust-pill.is-surface svg { color: var(--primary); }

.center-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 20;
  width: 76px;
  height: 76px;
  border-radius: 9999px;
  border: 1px solid #2e2e33;
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(8px);
  color: var(--pure-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .18s, background .18s;
}
.center-play-btn:hover { transform: translate(-50%, -50%) scale(1.07); background: rgba(255, 255, 255, .18); }
.center-play-btn svg { margin-left: 3px; }
.stage-wrap.is-playing .center-play-btn { display: none; }

.player-controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 22; transition: opacity .25s; }
.controls-bg { padding: 32px 20px 16px; background: linear-gradient(to top, rgba(0, 0, 0, .9), transparent); }
.progress-hit { padding: 10px 0; cursor: pointer; touch-action: none; }
.progress-track { height: 4px; border-radius: 9999px; background: rgba(255, 255, 255, .16); }
.progress-hit:hover .progress-track { height: 6px; }
.progress-fill { position: relative; height: 100%; border-radius: 9999px; background: #4ade80; }
.progress-thumb { position: absolute; right: -6px; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; border-radius: 9999px; background: #4ade80; border: 2px solid var(--pure-white); }
.controls-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.controls-left, .controls-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ctrl-btn { width: 36px; height: 36px; border-radius: 8px; color: #f4f4f5; display: inline-flex; align-items: center; justify-content: center; }
.ctrl-btn:hover { background: rgba(255, 255, 255, .1); }
.time-readout { font-size: 12px; color: #a1a1aa; font-variant-numeric: tabular-nums; white-space: nowrap; }
.file-readout { font-size: 12px; color: #a1a1aa; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-badge { padding: 2px 6px; border-radius: 4px; background: #4ade80; color: #052e16; font-size: 12px; font-weight: 700; }
.noaudio-toast { font-size: 12px; color: #f4f4f5; background: #18181b; border: 1px solid #2e2e33; padding: 4px 8px; border-radius: 6px; }


/* Control Panel */
.panel-wrap { margin-top: 16px; width: 100%; }
.control-panel {
  max-width: 448px;
  margin: 0 auto;
  border-radius: 16px;
  border: 1px solid #2e2e33;
  background: #18181b;
  color: #f4f4f5;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.panel-heading { font-family: var(--font-heading); font-size: 18px; font-weight: 700; line-height: 1.25; color: #f4f4f5; }
.panel-desc { margin: 4px 0 0; font-size: 13px; color: #a1a1aa; }
.primary-cta {
  margin-top: 16px;
  width: 100%;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #4ade80;
  color: #052e16;
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.primary-cta:hover { background: #22c55e; transform: translateY(-1px); }
.primary-cta.inline-cta { width: auto; padding: 10px 24px; }
.cta-spec { font-weight: 500; opacity: .9; }
.play-only-box {
  margin-top: 16px;
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #2e2e33;
  background: #0f0f10;
  font-size: 13px;
  color: #f4f4f5;
}
.play-only-box p { margin: 0 0 12px; }
.secondary-btn {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #4ade80;
  background: #18181b;
  color: #4ade80;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.secondary-btn:hover { background: #222226; }
.panel-hint { margin: 8px 0 0; font-size: 12px; color: #a1a1aa; text-align: center; }
.panel-ios-hint { margin: 8px 0 0; font-size: 12px; color: #f5d000; }
.panel-group { margin-top: 18px; }
.group-label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #a1a1aa; margin-bottom: 6px; }
.group-sub { margin: 0 0 8px; font-size: 12px; color: #a1a1aa; line-height: 1.45; }
.res-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.res-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  text-align: left;
  font-size: 13px;
  color: #a1a1aa;
  transition: background .15s, border-color .15s, color .15s;
}
.res-opt:hover { background: #222226; color: #f4f4f5; }
.res-opt.is-active { border-color: #4ade80; background: #222226; color: #f4f4f5; }
.radio-dot { width: 14px; height: 14px; border-radius: 9999px; border: 2px solid #a1a1aa; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.res-opt.is-active .radio-dot { border-color: #4ade80; }
.radio-dot span { width: 6px; height: 6px; border-radius: 9999px; background: transparent; }
.res-opt.is-active .radio-dot span { background: #4ade80; }
.res-opt-text { display: flex; flex: 1; min-width: 0; align-items: baseline; justify-content: space-between; gap: 4px; }
.res-opt-text strong { font-weight: 600; }
.res-opt-text small { font-size: 12px; color: #a1a1aa; font-variant-numeric: tabular-nums; }
.more-toggle { margin-top: 14px; width: 100%; padding: 8px 12px; border-radius: 8px; font-size: 13px; color: #a1a1aa; display: flex; align-items: center; justify-content: center; gap: 6px; }
.more-toggle:hover { background: #222226; color: #f4f4f5; }
.more-toggle.is-open .more-chevron { transform: rotate(180deg); }
.dur-row { display: flex; flex-wrap: wrap; gap: 6px; }
.dur-pill { min-height: 32px; padding: 4px 10px; border-radius: 6px; border: 1px solid #2e2e33; font-size: 12px; color: #a1a1aa; }
.dur-pill:hover { border-color: #a1a1aa; color: #f4f4f5; }
.dur-pill.is-active { border-color: #4ade80; background: #4ade80; color: #052e16; font-weight: 600; }
.fmt-tabs { display: flex; padding: 3px; border-radius: 8px; border: 1px solid #2e2e33; background: #0f0f10; }
.fmt-tab { flex: 1; min-height: 32px; border-radius: 6px; font-size: 12px; font-weight: 600; color: #a1a1aa; }
.fmt-tab.is-active { background: #222226; color: #f4f4f5; }
.file-meta-bar { margin-top: 14px; padding: 8px 12px; border-radius: 8px; border: 1px solid #2e2e33; background: #0f0f10; font-size: 12px; color: #a1a1aa; }
.file-meta-bar strong { color: #f4f4f5; }

.page-intro-block { margin-top: 24px; text-align: center; }
.page-h1 { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; letter-spacing: -0.02em; }
.page-subtitle { margin: 12px auto 0; max-width: 52ch; font-size: 16px; color: var(--muted); }

/* Content Containers & Sections */
.content-wide { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.content-mid { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.content-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.section-divider { margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--border); }
.section-gap { margin-top: 56px; }
.section-hr { border: 0; border-top: 1px solid var(--border); margin: 48px 0; }
.section-h2 { margin: 0; font-family: var(--font-heading); font-size: clamp(22px, 3vw, 28px); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
.sub-h3 { margin: 40px 0 0; font-family: var(--font-heading); font-size: 20px; font-weight: 700; line-height: 1.25; }
.is-center { text-align: center; }
.is-narrow { max-width: 64ch; margin-left: auto; margin-right: auto; }
.section-body { margin: 16px auto 0; max-width: 68ch; font-size: 16px; color: var(--muted); }
.section-note { margin: 16px auto 0; font-size: 14px; color: var(--muted); }
.section-head-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.text-link { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover { color: var(--primary); }

/* Steps, Use Cases, Formats */
.steps-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.step-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 28px 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); transition: border-color .15s, box-shadow .15s; }
.step-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); }
.step-badge { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary); }
.step-title { margin: 0; font-size: 16px; font-weight: 600; }
.step-text { margin: 0; font-size: 14px; color: var(--muted); }
.step-cover-btn { position: absolute; inset: 0; border-radius: var(--radius); }
.step-dl-btn {
  margin-top: 6px;
  position: relative;
  z-index: 2;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-fg);
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.step-dl-btn:hover { background: var(--primary-hover); }

.usecase-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.usecase-card { display: flex; gap: 14px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); }
.uc-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; background: var(--surface-muted); }
.uc-copy h3 { margin: 0; font-size: 15px; font-weight: 600; }
.uc-copy p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

.callout-card { padding: 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); }
.callout-title { margin: 0; font-family: var(--font-heading); font-size: 20px; font-weight: 700; }
.callout-body { margin: 12px 0 0; font-size: 15px; color: var(--muted); }

.formats-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.format-card { padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); text-align: center; }
.fmt-badge { display: inline-flex; padding: 4px 12px; border-radius: 9999px; background: var(--bg); border: 1px solid var(--border); color: var(--primary); font-family: var(--font-mono); font-size: 12px; font-weight: 600; margin-bottom: 10px; }
.format-card h3 { margin: 0; font-family: var(--font-heading); font-size: 18px; font-weight: 700; }
.format-card p { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.tag-block { max-width: 760px; margin: 24px auto 0; display: flex; flex-direction: column; gap: 12px; }
.tag-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tag-heading { min-width: 96px; font-size: 13px; font-weight: 600; }
.spec-chip { padding: 4px 10px; border-radius: 9999px; border: 1px solid var(--border); background: var(--surface-muted); font-size: 12px; color: var(--fg); }

/* Tables */
.table-wrap { margin-top: 20px; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); }
.table-wrap.is-compact { max-width: 680px; margin-left: auto; margin-right: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); text-align: left; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table th { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.data-table .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.cell-strong { font-weight: 600; color: var(--fg); }
.cell-muted { color: var(--muted); }
.cell-brand { font-weight: 600; color: var(--primary); }
.compare-table tr.is-highlight { background: var(--surface-muted); }
.vs-pills { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; }
.vs-pill { padding: 6px 16px; border-radius: 9999px; font-size: 14px; font-weight: 600; border: 1px solid var(--border); background: var(--card); color: var(--fg); }
.vs-pill.is-muted { background: var(--surface-muted); color: var(--muted); }
.vs-pill.is-brand { border-color: var(--primary); background: var(--bg); color: var(--primary); }
.vs-sep { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--muted); }

/* Featured Durations & Guides & FAQ & Related */
.featured-dur-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.alt-cards-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dur-feature-card { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); text-decoration: none; transition: transform .15s, border-color .15s, background .15s; }
.dur-feature-card:hover { transform: translateY(-2px); border-color: var(--primary); background: var(--surface-muted); }
.dur-watermark { position: absolute; right: 12px; bottom: 2px; font-family: var(--font-heading); font-size: 56px; font-weight: 800; line-height: 1; opacity: .06; pointer-events: none; }
.dur-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dur-title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dur-desc { font-size: 14px; color: var(--muted); }
.popular-badge { padding: 2px 8px; border-radius: 9999px; background: var(--surface-muted); border: 1px solid var(--border); color: var(--fg); font-size: 12px; font-weight: 600; }
.dur-arrow { color: var(--muted); flex-shrink: 0; }

.guides-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.guide-card { display: block; padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); text-decoration: none; transition: background .15s, border-color .15s; }
.guide-card:hover { background: var(--surface-muted); border-color: var(--primary); }
.guide-meta { margin: 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.guide-card h3 { margin: 10px 0 0; font-family: var(--font-heading); font-size: 18px; line-height: 1.3; }
.guide-desc { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

.faq-list { margin-top: 24px; }
.faq-box { margin-top: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-box .faq-item:last-child { border-bottom: 0; }
.faq-q { list-style: none; cursor: pointer; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 16px; font-weight: 600; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--primary); }
.faq-item[open] .faq-chev { transform: rotate(180deg); }
.faq-a { margin: 0; padding: 0 20px 18px; font-size: 15px; color: var(--muted); max-width: 70ch; }

.related-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.related-link { display: block; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border); font-size: 14px; text-decoration: none; transition: background .15s, border-color .15s; }
.related-link:hover { background: var(--surface-muted); border-color: var(--primary); }

/* Duration & Guides & Legal Pages */
.duration-shell { max-width: 1120px; margin: 0 auto; padding: 24px 24px 0; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); text-decoration: none; margin-bottom: 16px; }
.back-link:hover { color: var(--fg); }
.duration-h1 { margin: 0; font-family: var(--font-heading); font-weight: 800; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; letter-spacing: -0.02em; }
.duration-hero-stack { display: flex; flex-direction: column; }
.duration-lead { order: 2; margin: 20px 0 0; max-width: 70ch; font-size: 16px; color: var(--muted); }
.duration-tool-wrap { order: 1; margin-top: 16px; }
.usage-list { margin-top: 20px; display: flex; flex-direction: column; gap: 24px; }
.usage-item h3 { margin: 0; font-family: var(--font-heading); font-size: 18px; font-weight: 700; }
.usage-item p { margin: 8px 0 0; max-width: 70ch; color: var(--muted); }
.eyebrow { margin: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); }
.eyebrow-muted { margin: 0 0 12px; font-size: 14px; color: var(--muted); }

.guides-index-shell { max-width: 960px; margin: 0 auto; padding: 32px 24px 0; }
.guides-index-header { margin-top: 20px; max-width: 68ch; }
.guides-index-header h1 { margin: 12px 0 0; font-family: var(--font-heading); font-size: clamp(32px, 4.5vw, 48px); line-height: 1.15; }
.guides-footnote { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }

.prose-shell { max-width: 760px; margin: 0 auto; padding: 32px 24px 0; }
.notfound-shell { padding-top: 64px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { text-decoration: underline; text-underline-offset: 4px; }
.prose-header { padding-bottom: 24px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.prose-header h1 { margin: 10px 0 0; font-family: var(--font-heading); font-size: clamp(28px, 4vw, 42px); line-height: 1.15; }
.prose-lead { margin: 14px 0 0; font-size: 18px; color: var(--muted); max-width: 66ch; }
.guide-byline { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.prose-body { font-size: 16px; line-height: 1.7; color: var(--fg); }
.prose-body p, .prose-body ul, .prose-body ol { max-width: 70ch; }
.prose-body h2 { margin: 36px 0 12px; font-family: var(--font-heading); font-size: 24px; line-height: 1.25; }
.prose-body h3 { margin: 28px 0 10px; font-family: var(--font-heading); font-size: 19px; line-height: 1.3; }
.prose-body a { color: var(--primary); text-underline-offset: 3px; }
.prose-body code { font-family: var(--font-mono); font-size: 14px; padding: 2px 6px; border-radius: 6px; background: var(--surface-muted); }
.prose-body pre { overflow-x: auto; padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); }
.prose-body pre code { padding: 0; background: none; font-size: 13px; }
.prose-body table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 14px; display: block; overflow-x: auto; }
.prose-body th, .prose-body td { padding: 10px 12px; border: 1px solid var(--border); text-align: left; }
.prose-body img { border-radius: var(--radius); border: 1px solid var(--border); margin: 20px 0; }
.guide-cta-box { margin-top: 40px; padding: 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); }
.guide-cta-title { margin: 0; font-weight: 700; font-size: 16px; }
.guide-cta-links { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; }
.guide-next-link { margin-top: 18px; display: block; font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none; }
.guide-next-link:hover { text-decoration: underline; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-left { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 14px; }
.footer-meta { font-size: 12px; color: var(--muted); }
.footer-meta a { text-underline-offset: 2px; }
.footer-badges { display: inline-flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); }
.footer-badges a { text-decoration: none; }
.footer-badges a:hover { color: var(--fg); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 12px; color: var(--muted); }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--fg); }

/* Desktop Hero Overlay Layout */
@media (min-width: 1024px) {
  .tool-shell[data-aspect="16x9"] .hero-intro-overlay { display: block; }
  .tool-shell[data-aspect="16x9"] .page-intro-block { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tool-shell[data-aspect="16x9"] .panel-wrap { position: absolute; top: 0; right: 0; bottom: 0; z-index: 15; margin: 0; width: auto; display: flex; align-items: center; padding: 36px 40px 84px 0; }
  .tool-shell[data-aspect="16x9"] .control-panel { width: 352px; max-height: 100%; overflow-y: auto; background: rgba(24, 24, 27, .82); backdrop-filter: blur(18px); }
  .tool-shell[data-aspect="9x16"]:not(.is-fullscreen) { flex-direction: row; align-items: center; justify-content: center; gap: 36px; }
  .tool-shell[data-aspect="9x16"]:not(.is-fullscreen) .page-intro-block { order: 1; text-align: left; flex: 1; margin: 0; }
  .tool-shell[data-aspect="9x16"]:not(.is-fullscreen) .page-intro-block .page-subtitle { margin-left: 0; }
  .tool-shell[data-aspect="9x16"]:not(.is-fullscreen) .page-intro-block .trust-row { justify-content: flex-start; }
  .tool-shell[data-aspect="9x16"]:not(.is-fullscreen) .stage-wrap { order: 2; width: min(40svh, 310px); margin: 0; flex-shrink: 0; }
  .tool-shell[data-aspect="9x16"]:not(.is-fullscreen) .panel-wrap { order: 3; width: 352px; margin: 0; flex-shrink: 0; }
  .duration-lead { order: 1; margin-top: 14px; }
  .duration-tool-wrap { order: 2; margin-top: 24px; }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-only { display: inline-flex; }
  .steps-grid, .usecase-grid, .formats-grid, .featured-dur-grid, .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .header-inner { padding: 10px 16px; }
  .tool-section { padding: 12px 16px 0; }
  .content-wide, .content-mid, .content-narrow, .duration-shell, .prose-shell, .guides-index-shell { padding-left: 16px; padding-right: 16px; }
  .steps-grid, .usecase-grid, .formats-grid, .featured-dur-grid, .guides-grid, .alt-cards-row, .related-grid { grid-template-columns: 1fr; }
  .file-readout, .res-badge { display: none; }
  .control-panel { padding: 18px; }
  .primary-cta { width: 100%; }
}
