:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: #edf5f1;
  color: #121e1c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(20, 125, 100, 0.18), transparent 28%),
    radial-gradient(circle at 88% 16%, rgba(46, 104, 193, 0.16), transparent 26%),
    linear-gradient(135deg, #f2f8f5 0%, #e8f1ed 100%);
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.panel {
  width: min(100%, 720px);
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(215, 226, 221, 0.9);
  border-radius: 26px;
  padding: 30px;
  box-shadow: 0 28px 80px rgba(18, 30, 28, 0.14);
  backdrop-filter: blur(18px);
}

.hero-mark {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, #147d64, #2e68c1);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #5d6c68;
  font-size: 14px;
  padding-right: 72px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #b5bdb9;
}

.dot.ready {
  background: #147d64;
  box-shadow: 0 0 0 6px rgba(20, 125, 100, 0.12);
}

.dot.error {
  background: #b93636;
}

h1 {
  margin: 18px 0 8px;
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.15;
  letter-spacing: 0;
  padding-right: 72px;
}

.lead {
  margin: 0 0 24px;
  color: #5d6c68;
  line-height: 1.5;
  max-width: 580px;
}

.language-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 18px;
}

.transcript-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.language-grid > div,
.call-card {
  border: 1px solid #d7e2dd;
  border-radius: 18px;
  padding: 16px;
  background: #fbfdfc;
}

.label {
  display: block;
  color: #5d6c68;
  font-size: 13px;
  margin-bottom: 8px;
  font-weight: 700;
}

strong {
  display: block;
  font-size: 19px;
}

.call-card p {
  margin: 10px 0 0;
  color: #5d6c68;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.button-stack {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

button {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #147d64, #0e5348);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(20, 125, 100, 0.22);
}

button:disabled {
  background: #aeb7b3;
  cursor: not-allowed;
}

button.secondary {
  background: #e8eeeb;
  color: #121e1c;
  box-shadow: none;
}

.download-button {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 8px;
  background: #147d64;
  color: #ffffff;
  text-align: center;
  text-decoration: none;
  font-size: 16px;
}

.hint {
  margin: 16px 0 0;
  color: #5d6c68;
  font-size: 14px;
  line-height: 1.45;
}

@media (max-width: 560px) {
  .shell {
    align-items: stretch;
    padding: 12px;
  }

  .panel {
    padding: 22px;
    border-radius: 22px;
  }

  .hero-mark {
    width: 46px;
    height: 46px;
    border-radius: 16px;
  }

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

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