:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #171a1f;
  background: #f7f8f5;
  font-synthesis: none;
  --ink: #171a1f;
  --muted: #626971;
  --line: #d9ddd8;
  --paper: #ffffff;
  --green: #0a8f5b;
  --green-dark: #076c46;
  --green-soft: #e8f6ef;
  --coral: #ed694f;
  --yellow: #f1c84b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(#e5e8e3 1px, transparent 1px),
    linear-gradient(90deg, #e5e8e3 1px, transparent 1px),
    #f7f8f5;
  background-size: 48px 48px;
  letter-spacing: 0;
}

button,
input,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
label:focus-within,
summary:focus-visible {
  outline: 3px solid rgba(10, 143, 91, 0.3);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.site-header {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 245, 0.94);
  backdrop-filter: blur(12px);
}

.wordmark,
.header-link {
  color: var(--ink);
  text-decoration: none;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.wordmark-mark {
  width: 18px;
  height: 18px;
  border: 5px solid var(--green);
  border-top-color: var(--coral);
  border-radius: 50%;
}

.header-link {
  font-size: 14px;
  color: var(--muted);
}

.site-nav,
.footer-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a,
.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover,
.footer-nav a:hover {
  color: var(--green-dark);
}

.page-main {
  width: min(820px, calc(100% - 48px));
  min-height: calc(100svh - 164px);
  margin: 0 auto;
  padding: 86px 0 100px;
}

.page-main h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(42px, 7vw, 66px);
}

.page-intro {
  max-width: 650px;
  margin-bottom: 58px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.page-content {
  border-top: 1px solid var(--ink);
}

.page-content section {
  padding: 30px 0 34px;
  border-bottom: 1px solid var(--line);
}

.page-content h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.page-content p,
.page-content li {
  color: var(--muted);
  line-height: 1.7;
}

.page-content p:last-child,
.page-content ul:last-child {
  margin-bottom: 0;
}

.page-content a {
  color: var(--green-dark);
  font-weight: 700;
}

.article-main {
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding: 78px 0 96px;
}

.article-hero {
  max-width: 760px;
  padding-bottom: 56px;
}

.article-hero h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 68px);
  line-height: 1.02;
}

.article-lede {
  max-width: 700px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}

.article-tool-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--ink);
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.article-tool-link:hover {
  border-color: var(--green-dark);
  background: var(--green-dark);
}

.article-section {
  padding: 58px 0;
  border-top: 1px solid #cfd4ce;
}

.article-section-heading {
  max-width: 670px;
  margin-bottom: 28px;
}

.article-section-heading h2 {
  margin-bottom: 0;
  font-size: 34px;
  line-height: 1.15;
}

.article-section > p,
.article-section > ol,
.article-section > ul {
  max-width: 760px;
}

.article-section p,
.article-section li {
  color: var(--muted);
  line-height: 1.7;
}

.article-checklist,
.article-steps {
  margin: 24px 0 0;
  padding-left: 24px;
}

.article-checklist li,
.article-steps li {
  padding: 7px 0 7px 8px;
}

.article-checklist strong,
.article-steps strong {
  color: var(--ink);
}

.article-note {
  max-width: 760px;
  margin-top: 28px;
  padding: 20px 22px;
  border-left: 4px solid var(--green);
  background: var(--green-soft);
}

.article-note strong {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
}

.article-note p {
  margin-bottom: 0;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.article-grid article {
  min-height: 180px;
  padding: 24px;
  background: var(--paper);
}

.article-grid h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.article-grid p {
  margin-bottom: 0;
}

.article-faq .faq-list {
  max-width: 760px;
}

.article-sources ul {
  margin: 0;
  padding-left: 22px;
}

.article-sources a {
  color: var(--green-dark);
  font-weight: 700;
}

.contact-card {
  padding: 34px;
  border: 1px solid #bfc5be;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 10px 10px 0 #dce2dc;
}

.contact-card h2 {
  margin-bottom: 14px;
}

.contact-email {
  display: inline-block;
  color: var(--green-dark);
  font-size: clamp(24px, 5vw, 38px);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.tool-hero,
.support-section,
.workflow-section,
.faq-section,
footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.tool-hero {
  min-height: calc(100svh - 68px);
  padding: 54px 0 48px;
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(520px, 1.25fr);
  align-items: center;
  gap: 72px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  max-width: 520px;
  font-size: 56px;
  line-height: 1;
  font-weight: 850;
}

.lede {
  max-width: 430px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.tool-frame {
  min-height: 520px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #bfc5be;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 10px 10px 0 #dce2dc;
}

.drop-zone {
  min-height: 230px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1.5px dashed #aab1aa;
  border-radius: 6px;
  background: #fbfcfa;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.drop-zone:hover,
.drop-zone.is-dragging {
  border-color: var(--green);
  background: var(--green-soft);
  transform: translateY(-2px);
}

.drop-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 27px;
  font-weight: 300;
}

.drop-title {
  font-size: 20px;
  font-weight: 800;
}

.drop-copy {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

#file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.action-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #90968f;
  font-size: 12px;
  text-transform: uppercase;
}

.action-divider::before,
.action-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.record-button,
.primary-button,
.secondary-button {
  min-height: 48px;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.record-button {
  width: 100%;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  font-weight: 750;
}

.record-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
  background: #f3f5f1;
}

.record-button.is-recording {
  border-color: var(--coral);
  color: #a83a27;
  background: #fff3f0;
}

.record-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--coral);
}

.record-button.is-recording .record-dot {
  border-radius: 2px;
  animation: record-pulse 1s ease-in-out infinite;
}

.record-time {
  min-width: 44px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.format-line,
.privacy-line,
.processing-note {
  color: var(--muted);
  font-size: 12px;
}

.format-line {
  margin: 16px 0 0;
  text-align: center;
}

.privacy-line {
  margin: 22px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.privacy-line span {
  color: var(--green);
  font-size: 8px;
}

.file-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 14px;
  align-items: center;
}

.file-type {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
}

.file-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.file-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-copy span {
  color: var(--muted);
  font-size: 13px;
}

.progress-track {
  height: 9px;
  margin-top: 34px;
  overflow: hidden;
  border-radius: 2px;
  background: #e8ebe6;
}

.progress-track span {
  width: 0;
  height: 100%;
  display: block;
  background: var(--green);
  transition: width 180ms ease;
}

.progress-meta {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.progress-meta strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.processing-note {
  margin: 24px 0 0;
  line-height: 1.5;
}

.result-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.result-check {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 900;
}

.result-heading p {
  margin-bottom: 3px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.result-heading h2,
.error-view h2 {
  margin-bottom: 0;
  font-size: 22px;
  overflow-wrap: anywhere;
}

#note-visual {
  width: 100%;
  height: 150px;
  margin: 24px 0 12px;
  display: block;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f8faf7;
}

.result-meta {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

#source-audio {
  width: 100%;
  height: 42px;
}

.result-actions {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.primary-button,
.secondary-button {
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.primary-button {
  background: var(--ink);
  color: white;
}

.primary-button:hover {
  transform: translateY(-1px);
  background: var(--green-dark);
  border-color: var(--green-dark);
}

.secondary-button {
  background: white;
  color: var(--ink);
}

.error-view {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}

.error-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff0ec;
  color: #a83a27;
  font-weight: 900;
}

.error-view p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.error-view .secondary-button {
  grid-column: 1 / -1;
  margin-top: 18px;
}

.support-section,
.workflow-section,
.faq-section {
  padding: 92px 0;
  border-top: 1px solid #cfd4ce;
}

.section-heading {
  max-width: 590px;
  margin-bottom: 44px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 38px;
  line-height: 1.12;
}

.fact-list {
  border-top: 1px solid var(--ink);
}

.fact-list article {
  min-height: 142px;
  display: grid;
  grid-template-columns: 70px 240px 1fr;
  align-items: start;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.fact-list article > span {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.fact-list h3,
.fact-list p {
  margin-bottom: 0;
}

.fact-list h3 {
  font-size: 18px;
}

.fact-list p {
  max-width: 640px;
  color: var(--muted);
  line-height: 1.65;
}

.workflow-list {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.workflow-list li {
  min-height: 180px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-right: 1px solid var(--line);
}

.workflow-list li:last-child {
  border-right: 0;
}

.workflow-list strong {
  font-size: 19px;
}

.workflow-list span {
  color: var(--muted);
  line-height: 1.55;
}

.faq-list {
  max-width: 820px;
  border-top: 1px solid var(--ink);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  min-height: 72px;
  padding: 20px 44px 20px 0;
  display: flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  font-size: 17px;
  font-weight: 750;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  color: var(--green-dark);
  font-size: 24px;
  font-weight: 400;
  transition: transform 180ms ease;
}

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

.faq-list details p {
  max-width: 700px;
  margin-bottom: 24px;
  color: var(--muted);
  line-height: 1.65;
}

footer {
  min-height: 96px;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: 13px;
}

footer span:first-child {
  color: var(--ink);
  font-weight: 850;
  text-transform: uppercase;
}

@keyframes record-pulse {
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 880px) {
  .tool-hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 38px;
  }

  .hero-copy {
    max-width: 600px;
  }

  .tool-frame {
    min-height: 480px;
  }
}

@media (max-width: 640px) {
  .site-header {
    height: 60px;
    padding: 0 18px;
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav .header-link:first-child {
    display: none;
  }

  .tool-hero,
  .support-section,
  .workflow-section,
  .faq-section,
  .page-main,
  footer {
    width: min(100% - 28px, 1120px);
  }

  .tool-hero {
    min-height: auto;
    padding: 32px 0 54px;
    gap: 28px;
  }

  h1 {
    font-size: 40px;
  }

  .lede {
    font-size: 16px;
  }

  .tool-frame {
    min-height: 455px;
    padding: 18px;
    box-shadow: 5px 5px 0 #dce2dc;
  }

  .drop-zone {
    min-height: 190px;
    padding: 22px 16px;
  }

  .record-button,
  .primary-button,
  .secondary-button {
    min-height: 48px;
  }

  .result-actions {
    grid-template-columns: 1fr;
  }

  .support-section,
  .workflow-section,
  .faq-section {
    padding: 64px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2 {
    font-size: 30px;
  }

  .fact-list article {
    min-height: auto;
    grid-template-columns: 38px 1fr;
    gap: 8px 12px;
    padding: 24px 0;
  }

  .fact-list article p {
    grid-column: 2;
  }

  .workflow-list {
    grid-template-columns: 1fr;
  }

  .workflow-list li {
    min-height: auto;
    padding: 24px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workflow-list li:last-child {
    border-bottom: 0;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-main {
    padding-top: 58px;
    padding-bottom: 72px;
  }

  .article-main {
    width: min(100% - 28px, 920px);
    padding: 54px 0 72px;
  }

  .article-hero {
    padding-bottom: 42px;
  }

  .article-hero h1 {
    font-size: 40px;
  }

  .article-lede {
    font-size: 17px;
  }

  .article-section {
    padding: 44px 0;
  }

  .article-section-heading h2 {
    font-size: 29px;
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-grid article {
    min-height: auto;
  }

  .page-intro {
    margin-bottom: 40px;
    font-size: 17px;
  }

  .contact-card {
    padding: 24px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-nav {
    gap: 16px;
  }
}
