@charset "utf-8";
/* CSS Document */
/* ============================================================
   TOPTOOLLAB DESIGN SYSTEM TOKENS
============================================================ */
:root {
  --color-cyan:       #6ee7ff;
  --color-lime:       #a8ff53;
  --color-bg:         #080b10;
  --color-bg-card:    linear-gradient(180deg, #101319 0%, #0c0e13 100%);
  --color-bg-card-alt:#0d1118;
  --color-border:     rgba(255, 255, 255, 0.08);
  --color-border-cyan:rgba(110, 231, 255, 0.35);

  --color-text:       #eaf0f7;
  --color-muted:      #838e9d;
  --color-chip:       #646e7e;
  --color-danger:     #ff6b6b;
  --color-warn:       #ffb46b;

  --gradient-brand:   linear-gradient(135deg, #6ee7ff 0%, #a8ff53 100%);

  --radius-card:      14px;
  --radius-btn:       10px;
  --radius-pill:      999px;
  --radius-tag:       6px;
  --radius-input:     10px;

  --container-width:  1200px;
  --section-pad:      56px 0;

  --font-display:     'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body:        'Open Sans', ui-sans-serif, system-ui, sans-serif;
  --font-ui:          'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
  --font-mono:        'JetBrains Mono', ui-monospace, monospace;
}

/* ============================================================
   SCOPED RESET — ONLY UNDER .ttl-page
============================================================ */
.ttl-page :where(div, section, article, p, h1, h2, h3, h4, h5, h6,
  ul, ol, li, dl, dt, dd, figure, figcaption, blockquote,
  span, a, button, input, textarea, select, table, thead, tbody,
  tfoot, tr, th, td, form, fieldset, legend, label, details, summary) {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.ttl-page {
  position: relative;
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Grid texture with radial fade */
.ttl-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(100% 60% at 50% 0%, #000 20%, transparent 80%);
  mask-image: radial-gradient(100% 60% at 50% 0%, #000 20%, transparent 80%);
}

.ttl-page .wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Kicker & Headers */
.ttl-page .kicker {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-cyan);
  margin-bottom: 12px;
}

.ttl-page .grad {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ttl-hero {
  padding: 48px 0 16px;
}

.ttl-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
  margin-bottom: 16px;
}

.ttl-hero .lead {
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--color-muted);
  max-width: 68ch;
  line-height: 1.7;
  margin-bottom: 22px;
}

.ttl-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ttl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-family: var(--font-ui);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--color-muted);
}

.ttl-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-lime);
  box-shadow: 0 0 8px var(--color-lime);
  flex-shrink: 0;
}

/* ============================================================
   TOOL INTERACTIVE WIDGET (.ea-*)
============================================================ */
.ea-section {
  padding: 24px 0 56px;
}

.ea-panel {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 20px 48px -16px rgba(0, 0, 0, 0.6);
  padding: 32px;
}

@media (max-width: 640px) {
  .ea-panel { padding: 20px 16px; }
}

/* Error message box */
.ea-error {
  display: none;
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.35);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--color-danger);
  font-size: 14px;
  margin-bottom: 20px;
}

/* Dropzone */
.ea-drop {
  border: 2px dashed rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-card);
  padding: 56px 24px;
  text-align: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.25s, background-color 0.25s, transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ea-drop:hover, .ea-drop.is-dragging {
  border-color: var(--color-cyan);
  background: rgba(110, 231, 255, 0.035);
  transform: translateY(-1px);
}

.ea-drop-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(110, 231, 255, 0.08);
  border: 1px solid rgba(110, 231, 255, 0.25);
  display: grid;
  place-items: center;
  color: var(--color-cyan);
}

.ea-drop-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
}

.ea-drop-sub {
  font-size: 13px;
  color: var(--color-muted);
}

.ea-drop-sub span {
  display: inline-block;
  padding: 2px 7px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-text);
  margin: 0 2px;
}

.ea-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* Work area after file select */
.ea-work {
  display: none;
}

/* Video info header card */
.ea-file-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(110, 231, 255, 0.05);
  border: 1px solid rgba(110, 231, 255, 0.2);
  border-radius: 12px;
  margin-bottom: 24px;
}

.ea-file-badge__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(110, 231, 255, 0.12);
  border: 1px solid rgba(110, 231, 255, 0.25);
  display: grid;
  place-items: center;
  color: var(--color-cyan);
  flex-shrink: 0;
}

.ea-file-badge__meta {
  min-width: 0;
  flex: 1;
}

.ea-file-badge__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ea-file-badge__sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-muted);
  margin-top: 2px;
}

/* Stats 4-col grid */
.ea-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 720px) {
  .ea-stats { grid-template-columns: repeat(4, 1fr); }
}

.ea-stat-card {
  background: var(--color-bg-card-alt);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 14px 16px;
}

.ea-stat-card b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.ea-stat-card span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-chip);
}

/* Form Settings Layout */
.ea-settings-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ea-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.ea-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ea-field label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.ea-field input, .ea-field select {
  font-family: var(--font-ui);
  font-size: 14.5px;
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  padding: 11px 14px;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
  width: 100%;
}

.ea-field select option {
  background: #101319;
  color: var(--color-text);
}

.ea-field input:focus, .ea-field select:focus {
  border-color: var(--color-cyan);
  background: rgba(110, 231, 255, 0.02);
}

/* Trim Accordion Box */
.ea-trim-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 24px;
}

.ea-trim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.ea-trim-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.ea-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--color-cyan);
  cursor: pointer;
}

.ea-trim-inputs {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

@media (max-width: 520px) {
  .ea-trim-inputs { grid-template-columns: 1fr; }
}

/* Action buttons */
.ea-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-ui);
  font-size: 14.5px;
  font-weight: 600;
  border-radius: var(--radius-btn);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.2s, box-shadow 0.2s;
  border: 1px solid transparent;
}

.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: var(--gradient-brand);
  color: #07090e;
  border-color: transparent;
  box-shadow: 0 4px 18px rgba(110, 231, 255, 0.25);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 6px 24px rgba(110, 231, 255, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.btn-danger {
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.25);
  color: var(--color-danger);
}

.btn-danger:hover:not(:disabled) {
  background: rgba(255, 107, 107, 0.15);
}

/* Progress indicator */
.ea-progress {
  display: none;
  margin-top: 24px;
  background: var(--color-bg-card-alt);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 18px;
}

.ea-progress__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 8px;
}

.ea-progress__bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.ea-progress__fill {
  height: 100%;
  width: 0%;
  background: var(--gradient-brand);
  border-radius: var(--radius-pill);
  transition: width 0.2s ease-out;
}

/* Result Section */
.ea-result {
  display: none;
  margin-top: 28px;
  background: rgba(168, 255, 83, 0.03);
  border: 1px solid rgba(168, 255, 83, 0.2);
  border-radius: var(--radius-card);
  padding: 24px;
}

.ea-result__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ea-result__badge {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(168, 255, 83, 0.12);
  border: 1px solid rgba(168, 255, 83, 0.3);
  color: var(--color-lime);
  flex-shrink: 0;
}

.ea-result__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text);
}

.ea-result__info {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--color-muted);
}

.ea-player-wrap {
  margin: 18px 0 20px;
  background: #090c12;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 14px 18px;
}

.ea-player-wrap audio {
  width: 100%;
  outline: none;
}

.ea-privacy-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--color-chip);
  margin-top: 24px;
  text-align: center;
}

.ea-privacy-notice b {
  color: var(--color-lime);
}

/* ============================================================
   CONTENT SECTIONS (SEO / AdSense / GEO Standards)
============================================================ */
.ttl-section {
  padding: var(--section-pad);
  border-top: 1px solid var(--color-border);
}

.ttl-section__head {
  margin-bottom: 32px;
}

.ttl-section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.ttl-section__head p {
  color: var(--color-muted);
  font-size: 15px;
  max-width: 65ch;
  line-height: 1.7;
}

/* 3-Step Cards Grid */
.ttl-step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.ttl-step-card {
  position: relative;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  transition: transform 0.2s, border-color 0.2s;
}

.ttl-step-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.15);
}

.ttl-step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-cyan);
  margin-bottom: 14px;
  display: inline-block;
  letter-spacing: 0.08em;
}

.ttl-step-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
}

.ttl-step-card p {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.65;
}

/* Format Comparison 2-Col Cards */
.ttl-format-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.ttl-format-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px 26px;
}

.ttl-format-card__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ttl-format-card__badge--cyan {
  background: rgba(110, 231, 255, 0.1);
  color: var(--color-cyan);
  border: 1px solid rgba(110, 231, 255, 0.3);
}

.ttl-format-card__badge--lime {
  background: rgba(168, 255, 83, 0.1);
  color: var(--color-lime);
  border: 1px solid rgba(168, 255, 83, 0.3);
}

.ttl-format-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 10px;
}

.ttl-format-card p {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.65;
  margin-bottom: 16px;
}

.ttl-format-list {

  list-style: none;
  font-size: 13.5px;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ttl-format-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ttl-format-list li::before {
  content: "✓";
  color: var(--color-lime);
  font-weight: bold;
}

/* Comparison Table */
.ttl-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-card);
  border: 1px solid var(--color-border);
  background: var(--color-bg-card-alt);
}

.ttl-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.ttl-table th, .ttl-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
}

.ttl-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-chip);
  background: rgba(255, 255, 255, 0.02);
}

.ttl-table td:first-child {
  font-weight: 600;
  color: var(--color-text);
}

.ttl-table td { color: var(--color-muted); }
.ttl-table tr:last-child td { border-bottom: 0; }
.ttl-table .yes { color: var(--color-lime); font-weight: 600; }
.ttl-table .no { color: var(--color-danger); }
.ttl-table .mid { color: var(--color-warn); }

/* FAQ Accordion (Native details/summary) */
.ttl-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
}

.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: rgba(255, 255, 255, 0.18);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--color-text);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--color-cyan);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-body {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--color-muted);
  line-height: 1.7;
}

/* Related Tools Grid */
.ttl-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.ttl-related-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 22px 20px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.ttl-related-card:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-cyan);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5);
}

.ttl-related-card__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--color-cyan);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ttl-related-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.ttl-related-card p {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.55;
  margin-bottom: 14px;
}

.ttl-related-card__link {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-cyan);
}

