:root {
  --ink: #071225;
  --ink-soft: #344154;
  --muted: #6a7485;
  --line: #dbe2ec;
  --paper: #ffffff;
  --wash: #f6f8fc;
  --blue: #2668ff;
  --violet: #6846ff;
  --teal: #0a9f8f;
  --coral: #ef5c48;
  --amber: #f6b73c;
  --shadow: 0 18px 44px rgba(7, 18, 37, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 14px 32px;
  border-bottom: 1px solid rgba(219, 226, 236, 0.82);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 240px;
}

.brand img {
  display: block;
  width: 240px;
  max-width: 32vw;
  height: 66px;
  object-fit: cover;
  object-position: center;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.nav-links a {
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.nav-links a:hover {
  background: #eef3ff;
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  min-width: 160px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button svg,
.icon-button svg,
.trust-strip svg,
.payment-methods svg,
.security-grid svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.2;
}

.button:hover,
.icon-button:hover,
.checkout-option:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 28px rgba(38, 104, 255, 0.24);
}

.button-primary:hover {
  background: #1e57df;
}

.button-soft {
  color: var(--ink);
  background: #edf3ff;
  border: 1px solid #cfddff;
}

.button-soft:hover {
  background: #e4edff;
}

.button-compact {
  min-width: 136px;
  min-height: 40px;
  padding: 0 14px;
}

.workspace-band {
  padding: 36px 32px 64px;
}

.workspace-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
  max-width: 1180px;
  margin: 0 auto 24px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 870px;
  margin-bottom: 0;
  font-size: 2.85rem;
  line-height: 1.06;
}

h2 {
  margin-bottom: 0;
  font-size: 1.7rem;
  line-height: 1.18;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 420px;
}

.trust-strip span,
.payment-methods span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

.app-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.8fr);
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto;
}

.tool-panel,
.result-panel,
.price-card,
.flow-grid article,
.security-grid article,
.modal-panel {
  border: 1px solid rgba(219, 226, 236, 0.95);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.tool-panel,
.result-panel {
  padding: 22px;
}

.panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.panel-title h2 {
  font-size: 1.42rem;
}

.quota-pill,
.status-dot {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 8px;
  padding: 6px 10px;
  background: #e8f8f5;
  color: #05776b;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.quota-pill.is-used,
.status-dot.is-busy {
  background: #fff2e1;
  color: #a55f00;
}

.status-dot.is-locked {
  background: #feeceb;
  color: #bc2f22;
}

.drop-zone {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 24px;
  border: 2px dashed #b8c8e5;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(38, 104, 255, 0.08), rgba(10, 159, 143, 0.07)),
    #fbfcff;
  text-align: center;
  cursor: pointer;
}

.drop-zone.is-dragging {
  border-color: var(--blue);
  background: #edf4ff;
}

.drop-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.drop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
}

.drop-icon svg {
  width: 28px;
  height: 28px;
}

.drop-zone strong {
  display: block;
  max-width: 430px;
  font-size: 1.25rem;
}

.drop-zone small {
  display: block;
  max-width: 500px;
  margin-top: 8px;
  color: var(--muted);
}

.file-summary {
  display: flex;
  align-items: center;
  min-height: 42px;
  margin: 14px 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f1f5fb;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 800;
}

select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.switch-line {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 750;
}

.switch-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
}

.estimate-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.estimate-row > div,
.usage-meter {
  min-height: 70px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
}

.muted {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.result-panel {
  display: flex;
  flex-direction: column;
  min-height: 640px;
}

.usage-meter {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.meter-track,
.progress-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #e6edf7;
}

.meter-track span,
.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--teal);
  transition: width 280ms ease;
}

.wave-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
  margin-bottom: 16px;
  border-radius: 8px;
  padding: 14px;
  background: #071225;
}

.wave-panel span {
  width: 5.6%;
  min-width: 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, #4f8cff, #7855ff);
}

.wave-panel span:nth-child(1) { height: 28%; }
.wave-panel span:nth-child(2) { height: 58%; }
.wave-panel span:nth-child(3) { height: 42%; }
.wave-panel span:nth-child(4) { height: 76%; }
.wave-panel span:nth-child(5) { height: 34%; }
.wave-panel span:nth-child(6) { height: 66%; }
.wave-panel span:nth-child(7) { height: 88%; }
.wave-panel span:nth-child(8) { height: 48%; }
.wave-panel span:nth-child(9) { height: 62%; }
.wave-panel span:nth-child(10) { height: 36%; }
.wave-panel span:nth-child(11) { height: 72%; }
.wave-panel span:nth-child(12) { height: 30%; }

.progress-block {
  margin-bottom: 16px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.progress-track span {
  background: var(--blue);
}

.transcript-output {
  flex: 1;
  min-height: 230px;
  max-height: 360px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fbfcff;
  color: var(--ink-soft);
  white-space: pre-wrap;
}

.transcript-output p {
  margin-bottom: 0;
}

.export-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 14px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.pricing-band,
.flow-band,
.payments-band,
.security-band {
  padding: 62px 32px;
}

.pricing-band,
.payments-band {
  background: #fff;
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 24px;
  text-align: center;
}

.section-heading.compact {
  margin-bottom: 20px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.price-card {
  display: flex;
  flex-direction: column;
  min-height: 380px;
  padding: 22px;
}

.price-card.featured {
  border-color: rgba(38, 104, 255, 0.55);
  box-shadow: 0 20px 48px rgba(38, 104, 255, 0.18);
}

.plan-label {
  margin-bottom: 7px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.price {
  display: block;
  margin: 4px 0 16px;
  font-size: 2rem;
}

.price-card ul {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--ink-soft);
}

.price-card .button {
  margin-top: auto;
  width: 100%;
}

.flow-grid,
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.flow-grid article,
.security-grid article {
  padding: 22px;
  box-shadow: none;
}

.flow-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: #071225;
  color: #fff;
  font-weight: 900;
}

.flow-grid p,
.security-grid p,
.payments-copy p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.payments-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(340px, 0.6fr);
  align-items: center;
  gap: 30px;
}

.payments-copy {
  max-width: 640px;
  justify-self: end;
}

.payment-methods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 170px));
  gap: 10px;
  justify-content: start;
}

.payment-methods span {
  min-height: 54px;
  justify-content: center;
}

.security-grid svg {
  color: var(--blue);
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 32px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.footer img {
  width: 260px;
  max-width: min(58vw, 260px);
  height: 72px;
  object-fit: cover;
  object-position: center;
}

.footer p {
  margin-bottom: 0;
}

.checkout-modal[hidden] {
  display: none;
}

.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 37, 0.58);
}

.modal-panel {
  position: relative;
  width: min(520px, 100%);
  padding: 24px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
}

.modal-options {
  display: grid;
  gap: 10px;
  margin: 18px 0 14px;
}

.checkout-option {
  display: grid;
  gap: 4px;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.checkout-option span,
.modal-note {
  color: var(--muted);
}

.modal-note {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  max-width: 360px;
  border-radius: 8px;
  padding: 14px 16px;
  background: #071225;
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1020px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .workspace-heading,
  .app-grid,
  .payments-band {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    justify-content: flex-start;
    max-width: none;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payments-copy {
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .topbar,
  .workspace-band,
  .pricing-band,
  .flow-band,
  .payments-band,
  .security-band,
  .footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .topbar {
    gap: 10px;
  }

  .brand img {
    width: 170px;
    max-width: 50vw;
    height: 48px;
  }

  .button-compact {
    min-width: 46px;
    padding: 0 12px;
    font-size: 0;
  }

  .button-compact svg {
    margin: 0;
  }

  h1 {
    font-size: 2.05rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  .tool-panel,
  .result-panel {
    padding: 16px;
  }

  .form-grid,
  .toggle-grid,
  .estimate-row,
  .pricing-grid,
  .flow-grid,
  .security-grid,
  .payment-methods {
    grid-template-columns: 1fr;
  }

  .result-panel {
    min-height: 560px;
  }

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

  .price-card {
    min-height: auto;
  }

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