/* ============================================================
   transcribe.free design system
   One brand color (violet), soft shadows, 16-20px radii,
   8px spacing scale. Light + dark themes via CSS variables.
   Bootstrap is used for grid/utilities only — every visible
   component below is custom-styled.
   ============================================================ */

:root {
  --brand: #f2542d;
  --brand-strong: #e03e17;
  --brand-deep: #b62f0f;
  --brand-soft: rgba(242, 84, 45, 0.10);
  --brand-softer: rgba(242, 84, 45, 0.06);
  --brand-gradient: linear-gradient(135deg, #ff7a45 0%, #f2542d 55%, #d83c14 100%);

  --bg: #fbf8f5;
  --bg-elev: #ffffff;
  --bg-sunken: #f4efe9;
  --text: #201a17;
  --text-2: #574f49;
  --text-3: #8c837c;
  --border: #ece5dd;
  --border-strong: #ddd3c8;

  --success: #1fa971;
  --warning: #d98b0b;
  --danger: #e0435c;

  --shadow-sm: 0 1px 2px rgba(23, 22, 35, 0.05), 0 2px 8px rgba(23, 22, 35, 0.05);
  --shadow-md: 0 2px 6px rgba(23, 22, 35, 0.06), 0 12px 32px rgba(23, 22, 35, 0.09);
  --shadow-lg: 0 4px 12px rgba(23, 22, 35, 0.07), 0 24px 64px rgba(23, 22, 35, 0.13);
  --shadow-brand: 0 8px 24px rgba(242, 84, 45, 0.35);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

[data-theme="dark"] {
  --bg: #0f0e17;
  --bg-elev: #191826;
  --bg-sunken: #13121e;
  --text: #f0eff8;
  --text-2: #b6b3cc;
  --text-3: #7d7a96;
  --border: #2a2839;
  --border-strong: #3a3750;
  --brand-soft: rgba(242, 84, 45, 0.16);
  --brand-softer: rgba(242, 84, 45, 0.09);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.45), 0 24px 64px rgba(0, 0, 0, 0.6);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background 0.25s ease, color 0.25s ease;
}
main { flex: 1 0 auto; }
h1, h2, h3, h4, h5 { font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-strong); }
::selection { background: var(--brand); color: #fff; }

.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }

/* ---------- Navbar ---------- */
.tf-nav {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--border);
}
[data-theme="dark"] .tf-nav { background: rgba(25, 24, 38, 0.82); }
.tf-nav .navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.13rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.tf-nav .navbar-brand .logo-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-gradient);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-brand);
  flex: 0 0 auto;
}
.tf-nav .navbar-brand .brand-free { color: var(--brand); }
.tf-nav .nav-link {
  color: var(--text-2);
  font-weight: 500;
  border-radius: 999px;
  padding: 8px 14px;
}
.tf-nav .nav-link:hover { color: var(--text); background: var(--brand-softer); }
.tf-nav .nav-link.active { color: var(--brand-strong); background: var(--brand-soft); }
.tf-nav .navbar-toggler { border: 1px solid var(--border); border-radius: 10px; color: var(--text-2); }
.tf-nav .navbar-toggler:focus { box-shadow: 0 0 0 3px var(--brand-soft); }
.tf-nav .dropdown-menu {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  max-height: 420px;
  overflow-y: auto;
}
.tf-nav .dropdown-item { color: var(--text-2); border-radius: 8px; margin: 0 6px; width: auto; }
.tf-nav .dropdown-item:hover { background: var(--brand-soft); color: var(--text); }

/* Theme toggle */
.theme-toggle {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text-2);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.theme-toggle:hover { transform: scale(1.06); color: var(--brand); border-color: var(--brand); }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---------- Buttons ---------- */
.btn-brand {
  background: var(--brand-gradient);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-weight: 600;
  box-shadow: var(--shadow-brand);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn-brand:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.06); }
.btn-brand:active { transform: translateY(0); }
.btn-brand:disabled { filter: saturate(0.4); opacity: 0.7; box-shadow: none; }

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 11px 24px;
  font-weight: 600;
  transition: all 0.15s ease;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-softer); }

.btn-pill {
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.btn-pill:hover { border-color: var(--brand); color: var(--brand); }
.btn-pill.primary { background: var(--brand-gradient); border-color: transparent; color: #fff; box-shadow: var(--shadow-brand); }
.btn-pill.primary:hover { color: #fff; filter: brightness(1.06); }
.btn-pill.locked { opacity: 0.65; }

/* ---------- Cards / panels ---------- */
.panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.panel-lg { border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 24px; text-align: center; }
.hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.1rem);
  font-weight: 800;
  margin-bottom: 14px;
}
.hero h1 .grad {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .sub {
  color: var(--text-2);
  font-size: 1.13rem;
  max-width: 660px;
  margin: 0 auto 8px;
}
.hero .trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  margin-top: 14px;
  color: var(--text-3);
  font-size: 0.9rem;
}
.hero .trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.hero .trust-row svg { color: var(--success); }

/* ---------- Upload panel / dropzone ---------- */
.upload-panel {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 16px;
}
.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  background: var(--bg-sunken);
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.1s ease;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--brand);
  background: var(--brand-softer);
}
.dropzone.dragover { transform: scale(1.01); }
.dropzone .dz-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: var(--brand-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-brand);
}
.dropzone .dz-title { font-weight: 700; font-size: 1.12rem; margin-bottom: 4px; color: var(--text); }
.dropzone .dz-hint { color: var(--text-3); font-size: 0.92rem; }
.dropzone .dz-browse { color: var(--brand); font-weight: 600; text-decoration: underline; }
.upload-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 6px 2px;
}
.upload-options select {
  background-color: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 8px 34px 8px 16px;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2385829e' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.upload-options .lang-locked {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.95rem;
}
.upload-note { color: var(--text-3); font-size: 0.85rem; text-align: center; margin-top: 12px; }
.upload-note a { font-weight: 600; }
.upload-error {
  background: rgba(224, 67, 92, 0.1);
  border: 1px solid rgba(224, 67, 92, 0.35);
  color: var(--danger);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 0.93rem;
  margin-top: 12px;
}

/* Upload progress state */
.upload-progress { padding: 40px 24px; text-align: center; }
.progress-ring { position: relative; width: 96px; height: 96px; margin: 0 auto 18px; }
.progress-ring svg { transform: rotate(-90deg); }
.progress-ring .ring-bg { stroke: var(--border); }
.progress-ring .ring-val { stroke: var(--brand); stroke-linecap: round; transition: stroke-dashoffset 0.25s ease; }
.progress-ring .ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 20px; }
.chip {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-2);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- Status timeline (transcript page) ---------- */
.status-panel { max-width: 720px; margin: 40px auto; padding: 40px 28px; text-align: center; }
.status-steps {
  display: flex;
  justify-content: center;
  gap: 0;
  margin: 30px auto 10px;
  max-width: 480px;
}
.status-step { flex: 1; position: relative; }
.status-step .dot {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-sunken);
  border: 2px solid var(--border-strong);
  color: var(--text-3);
  font-weight: 700;
  font-size: 0.85rem;
  position: relative;
  z-index: 1;
}
.status-step .bar {
  position: absolute;
  top: 16px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--border-strong);
}
.status-step:first-child .bar { display: none; }
.status-step .lbl { font-size: 0.85rem; color: var(--text-3); font-weight: 600; }
.status-step.done .dot { background: var(--success); border-color: var(--success); color: #fff; }
.status-step.done .bar { background: var(--success); }
.status-step.active .dot {
  background: var(--brand-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 0 6px var(--brand-soft);
  animation: pulse 1.6s ease infinite;
}
.status-step.active .lbl, .status-step.done .lbl { color: var(--text); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(242, 84, 45, 0.35); }
  70% { box-shadow: 0 0 0 10px rgba(242, 84, 45, 0); }
  100% { box-shadow: 0 0 0 0 rgba(242, 84, 45, 0); }
}
.spin { animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Transcript editor ---------- */
.editor-wrap { max-width: 880px; margin: 24px auto 90px; }
.editor-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.editor-head h1 {
  font-size: 1.25rem;
  margin: 0;
  overflow-wrap: anywhere;
}
.editor-meta { color: var(--text-3); font-size: 0.88rem; display: flex; gap: 14px; flex-wrap: wrap; }
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 14px;
}
.editor-toolbar .search-box {
  flex: 1 1 220px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--text-3);
}
.editor-toolbar .search-box input {
  border: none;
  outline: none;
  background: transparent;
  color: var(--text);
  width: 100%;
  font-size: 0.95rem;
}
.seg-list { padding: 6px 0; }
.seg-row {
  display: flex;
  gap: 14px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.seg-row:hover { background: var(--brand-softer); }
.seg-row.hit { background: rgba(217, 139, 11, 0.12); }
.seg-time {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brand-strong);
  background: var(--brand-soft);
  border-radius: 7px;
  padding: 3px 8px;
  height: fit-content;
  margin-top: 2px;
  white-space: nowrap;
}
.hide-ts .seg-time { display: none; }
.seg-speaker {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-2);
  background: var(--bg-sunken);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 3px 8px;
  height: fit-content;
  margin-top: 2px;
  cursor: pointer;
  white-space: nowrap;
}
.seg-speaker:hover { border-color: var(--brand); color: var(--brand); }
.seg-text {
  flex: 1;
  line-height: 1.65;
  color: var(--text);
  outline: none;
  border-radius: 6px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.seg-text:focus { background: var(--bg-elev); box-shadow: 0 0 0 2px var(--brand); padding: 2px 6px; }

/* Sticky export bar */
.export-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 1040;
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 10px;
  box-shadow: var(--shadow-lg);
  max-width: calc(100vw - 24px);
  overflow-x: auto;
}
[data-theme="dark"] .export-bar { background: rgba(25, 24, 38, 0.92); }
.export-bar .lbl { color: var(--text-3); font-size: 0.85rem; font-weight: 600; padding: 0 6px 0 10px; white-space: nowrap; }

/* Anon banner */
.anon-banner {
  background: var(--brand-soft);
  border: 1px solid rgba(242, 84, 45, 0.26);
  color: var(--text);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 0.93rem;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}

/* ---------- Content sections / FAQ ---------- */
.content-section { max-width: 760px; margin: 56px auto 0; }
.content-section h2 { font-size: 1.45rem; margin-bottom: 14px; }
.content-section p { color: var(--text-2); line-height: 1.75; }
.faq-section { max-width: 760px; margin: 56px auto 72px; }
.faq-section h2 { font-size: 1.45rem; margin-bottom: 20px; }
details.faq {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 10px;
  overflow: hidden;
}
details.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  padding: 16px 48px 16px 20px;
  position: relative;
  color: var(--text);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--brand);
  transition: transform 0.2s ease;
}
details.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details.faq .faq-a { padding: 0 20px 18px; color: var(--text-2); line-height: 1.7; }

/* ---------- Pricing ---------- */
.pricing-hero { text-align: center; padding: 48px 0 8px; }
.pricing-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 34px; }
.price-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  border: 2px solid var(--brand);
  box-shadow: var(--shadow-md);
}
.price-card .plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-gradient);
  color: #fff;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  box-shadow: var(--shadow-brand);
  white-space: nowrap;
}
.price-card .plan-name { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; }
.price-card .plan-price { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.price-card .plan-price .per { font-size: 0.95rem; font-weight: 500; color: var(--text-3); }
.price-card .plan-sub { color: var(--text-3); font-size: 0.88rem; margin-bottom: 16px; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 22px; }
.price-card ul li {
  padding: 7px 0;
  color: var(--text-2);
  font-size: 0.94rem;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.price-card ul li svg { flex: 0 0 auto; margin-top: 4px; color: var(--success); }
.price-card .cta { margin-top: auto; }
.packs-strip { margin-top: 40px; }
.pack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  margin-bottom: 12px;
}
.pack-row .pack-name { font-weight: 700; }
.pack-row .pack-detail { color: var(--text-3); font-size: 0.9rem; }
.pack-row .pack-price { font-weight: 800; font-size: 1.3rem; }
.soon-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(217, 139, 11, 0.12);
  color: var(--warning);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 7px 16px;
}

/* ---------- Tables ---------- */
.tier-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--bg-elev); box-shadow: var(--shadow-sm); }
.tier-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.tier-table th, .tier-table td { padding: 13px 18px; border-bottom: 1px solid var(--border); font-size: 0.93rem; }
.tier-table thead th { color: var(--text-3); font-weight: 600; font-size: 0.83rem; text-transform: uppercase; letter-spacing: 0.04em; }
.tier-table tbody th { color: var(--text-2); font-weight: 600; text-align: left; }
.tier-table td { color: var(--text-2); }
.tier-table tr:last-child th, .tier-table tr:last-child td { border-bottom: none; }
.tier-table .hl { color: var(--brand-strong); font-weight: 700; }

/* ---------- Forms (auth, contact, account) ---------- */
.auth-panel { max-width: 440px; margin: 48px auto; padding: 34px 30px; }
.auth-panel h1 { font-size: 1.5rem; text-align: center; margin-bottom: 22px; }
.form-control, .form-select {
  background-color: var(--bg-sunken);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 12px;
  padding: 11px 15px;
}
.form-control:focus, .form-select:focus {
  background-color: var(--bg-elev);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
  color: var(--text);
}
.form-label { font-weight: 600; font-size: 0.9rem; color: var(--text-2); }
.form-control::placeholder { color: var(--text-3); }

/* Alerts */
.alert { border-radius: var(--radius); border: 1px solid var(--border); }

/* Cards used by legacy djangobase templates (account, contact, etc.) */
.card {
  background-color: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
}
.card .card-body { color: var(--text-2); }
.btn-primary {
  background: var(--brand-gradient);
  border: none;
  border-radius: 999px;
  font-weight: 600;
  padding: 10px 24px;
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-outline-secondary { border-radius: 999px; }
.table { color: var(--text-2); }

/* ---------- Footer ---------- */
.tf-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  margin-top: 72px;
  padding: 40px 0 30px;
  color: var(--text-3);
  font-size: 0.92rem;
}
.tf-footer h6 { color: var(--text); font-weight: 700; font-size: 0.88rem; margin-bottom: 12px; }
.tf-footer a { color: var(--text-3); display: inline-block; padding: 3px 0; }
.tf-footer a:hover { color: var(--brand); }
.tf-footer .brand-line { display: flex; align-items: center; gap: 9px; color: var(--text-2); font-weight: 700; }

/* ---------- Utility ---------- */
.mw-content { max-width: 760px; margin-left: auto; margin-right: auto; }
.legal-page { max-width: 720px; margin: 40px auto 64px; }
.legal-page h1 { font-size: 1.7rem; margin-bottom: 18px; }
.legal-page h2 { font-size: 1.15rem; margin: 26px 0 10px; }
.legal-page p, .legal-page li { color: var(--text-2); line-height: 1.75; }

@media (max-width: 576px) {
  .hero { padding: 36px 0 12px; }
  .dropzone { padding: 36px 14px; }
  .seg-row { flex-wrap: wrap; gap: 8px; padding: 12px 10px; }
  .export-bar { bottom: 10px; }
}
