:root {
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: #202637;
  background: #f7f8fa;
  font-synthesis: none;
  line-height: 1.5;
  font-size: 15px;
  --accent: #3745d3;
  --muted: #687184;
  --line: #e3e6ed;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button,
a,
select,
input,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #818cf8;
}
a {
  color: var(--accent);
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
[hidden] {
  display: none !important;
}
.site-header,
main,
footer {
  width: min(1200px, calc(100% - 64px));
  margin: auto;
}
.site-header {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  text-decoration: none;
  color: #222b45;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-size: 25px;
}
.privacy-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #596575;
  font-size: 12px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #23846e;
}
.intro {
  padding: 56px 0 38px;
}
.eyebrow {
  letter-spacing: 1.8px;
  color: var(--accent);
  font-weight: 650;
  font-size: 11px;
  margin: 0 0 15px;
}
h1 {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.08;
  letter-spacing: -2.7px;
  font-weight: 650;
  margin: 0;
}
h1 span {
  color: var(--accent);
}
.lead {
  font-size: 17px;
  max-width: 550px;
  color: var(--muted);
  line-height: 1.7;
  margin: 20px 0;
}
.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 12px;
  color: #536172;
}
.benefits span:before {
  content: "✓";
  color: #358372;
  margin-right: 7px;
}
.workspace {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 25px;
  box-shadow: 0 4px 16px #18233f03;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
}
.step {
  font-size: 11px;
  border: 1px solid #e1e5ee;
  border-radius: 7px;
  padding: 3px 6px;
  color: #657187;
}
h2 {
  font-size: 16px;
  letter-spacing: -0.25px;
  font-weight: 650;
  margin: 0;
}
.badge {
  font-size: 10px;
  color: #687184;
  background: #f2f4f7;
  padding: 4px 8px;
  border-radius: 20px;
  margin-left: auto;
  white-space: nowrap;
}
.dropzone {
  position: relative;
  border: 1.5px dashed #cdd3e5;
  border-radius: 12px;
  padding: 28px 10px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  flex-direction: column;
  background: #fafbff;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.dropzone.dragging {
  background: #eef0ff;
  border-color: var(--accent);
}
.dropzone:focus-within {
  outline: 3px solid #818cf8;
  outline-offset: 2px;
}
.upload-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #e1e5f4;
  border-radius: 12px;
  color: var(--accent);
  font-size: 25px;
  margin-bottom: 12px;
  background: white;
}
.file-label {
  color: var(--accent);
  font-weight: 600;
}
.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.dropzone .muted {
  font-size: 12px;
  margin: 3px 0 13px;
}
.dropzone small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
}
.file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f6f7fd;
  padding: 12px;
  border-radius: 10px;
  margin-top: 12px;
  min-width: 0;
}
.file-info > div {
  min-width: 0;
  flex: 1;
}
.file-info strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.file-info span:not(.file-symbol) {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.file-symbol {
  color: var(--accent);
  font-size: 23px;
}
.icon-button {
  border: 0;
  background: none;
  font-size: 22px;
  color: #667085;
  padding: 4px;
}
audio {
  width: 100%;
  height: 36px;
  margin-top: 10px;
}
.field {
  display: grid;
  gap: 7px;
  margin-top: 21px;
}
.field label {
  font-size: 12px;
  font-weight: 600;
}
.field select {
  width: 100%;
  padding: 11px 30px 11px 10px;
  border: 1px solid #dbe0e9;
  background: white;
  border-radius: 8px;
  color: #283147;
  font-size: 12px;
}
.field small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  min-height: 34px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 11px 16px;
  font-weight: 600;
  font-size: 12px;
}
.primary {
  background: var(--accent);
  color: white;
  width: 100%;
  margin-top: 20px;
  justify-content: space-between;
}
.primary:hover:enabled {
  background: #2a36b8;
}
.secondary {
  background: white;
  border-color: #dce1eb;
  color: #3b455b;
}
.secondary:hover {
  background: #f6f7fb;
}
.setup-note,
.result-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.setup-note {
  margin: 13px 0 0;
}
.result {
  display: flex;
  flex-direction: column;
  min-height: 590px;
}
.empty-state {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  padding: 55px 10px;
}
.document-icon {
  font-size: 40px;
  line-height: 1;
  border: 1px solid #e1e5ee;
  border-radius: 13px;
  padding: 15px 20px;
  background: linear-gradient(130deg, #fff, #f3f4fc);
  color: #98a0bd;
  margin-bottom: 20px;
  transform: rotate(-6deg);
}
.empty-state h3 {
  font-size: 16px;
  font-weight: 550;
  letter-spacing: -0.3px;
  margin: 0 0 9px;
}
.empty-state p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}
.result-note {
  margin: auto 0 0;
  padding-top: 18px;
  border-top: 1px solid #edf0f4;
}
.progress-card {
  background: #f7f8fe;
  border: 1px solid #e5e8f7;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}
.progress-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.text-button {
  padding: 5px 0;
  background: none;
  border: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}
.progress-details {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: #535e77;
  margin-top: 6px;
}
.progress-card p {
  color: var(--muted);
  font-size: 11px;
  margin: 10px 0 0;
}
.progress-card progress {
  width: 100%;
  height: 6px;
  accent-color: var(--accent);
  margin-top: 14px;
  border: 0;
  border-radius: 20px;
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: #e2e6f4;
}
progress::-webkit-progress-value {
  background: var(--accent);
}
#results {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding-bottom: 20px;
}
.transcript-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}
.toggle {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
input[type="checkbox"] {
  accent-color: var(--accent);
}
textarea {
  width: 100%;
  flex: 1;
  min-height: 300px;
  resize: vertical;
  border: 1px solid #e7eaf1;
  border-radius: 10px;
  padding: 16px;
  color: #303b50;
  line-height: 1.9;
  font-size: 13px;
  background: #fcfcfe;
}
.result-bottom {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  font-size: 11px;
}
.downloads {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.muted {
  color: var(--muted);
}
.error {
  background: #fff5f3;
  color: #a23927;
  border: 1px solid #f1cfc8;
  border-radius: 9px;
  padding: 14px;
  font-size: 12px;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
}
.tips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  padding: 36px 4px 40px;
}
.tips h3 {
  font-size: 12px;
  font-weight: 650;
  margin: 0 0 8px;
}
.tips p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}
footer {
  padding: 24px 0 30px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  color: var(--muted);
}
footer a {
  color: var(--muted);
  text-decoration: none;
}
footer a:hover {
  color: var(--accent);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.model-guide {
  border-top: 1px solid var(--line);
  padding: 30px 0 36px;
}
.model-intro,
.model-footnote {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.model-intro {
  max-width: 780px;
  margin: 12px 0 20px;
}
.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.model-grid article {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.model-grid h3 {
  margin: 0 0 6px;
  font-size: 14px;
}
.model-size {
  color: var(--accent);
  font-size: 11px;
}
.model-grid p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 0;
}
.model-footnote {
  margin: 18px 0 0;
}
footer span a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 680px) {
  .model-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 1000px) {
  .intro {
    position: relative;
  }
  .benefits {
    position: absolute;
    right: 0;
    bottom: 52px;
    flex-direction: column;
    gap: 10px;
  }
}
@media (max-width: 850px) {
  .workspace {
    grid-template-columns: 310px minmax(0, 1fr);
  }
  .panel {
    padding: 18px;
  }
  .badge {
    display: none;
  }
  .result-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .tips {
    gap: 20px;
  }
}
@media (max-width: 680px) {
  .site-header,
  main,
  footer {
    width: calc(100% - 32px);
  }
  .site-header {
    height: 72px;
  }
  .brand {
    font-size: 14px;
  }
  .privacy-badge {
    font-size: 10px;
  }
  .intro {
    padding-top: 36px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .tips {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .result {
    min-height: 420px;
  }
  .empty-state {
    padding: 45px 0;
  }
  .result-note {
    padding-top: 14px;
  }
  .result-bottom {
    flex-direction: row;
  }
  .progress-details {
    flex-wrap: wrap;
  }
  footer {
    flex-direction: column;
    gap: 10px;
  }
  h1 {
    letter-spacing: -1.7px;
  }
  .lead {
    font-size: 15px;
  }
  .panel {
    padding: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
