:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #eef1f4;
  --ink: #11151a;
  --muted: #5b6470;
  --line: #dce1e7;
  --accent: #0f766e;
  --accent-dark: #0b5d57;
  --accent-soft: #e6f4f2;
  --amber: #b45309;
  --amber-soft: #fef3e2;
  --red: #d92d20;
  --red-soft: #fdeceb;
  --stage: #101317;
  --stage-2: #1a1f26;
  --stage-line: #2a313a;
  --stage-text: #f2f5f7;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(17, 21, 26, 0.06), 0 10px 28px rgba(17, 21, 26, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

img,
canvas,
audio {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 12px;
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 26px;
}

h3 {
  font-size: 18px;
}

p {
  margin: 0 0 14px;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: 780px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 14px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  z-index: 100;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35);
  outline-offset: 2px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
}

.main-nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
}

.lang-switch {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--surface-2);
  border-radius: var(--radius);
}

.lang-switch a {
  padding: 5px 9px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.lang-switch a.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(17, 21, 26, 0.08);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled,
.btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--stage-line);
}

.btn-danger {
  background: var(--red);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: #b9c1ca;
}

.btn-small {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 13px;
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.btn-record .rec-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #fff;
}

/* Hero */
.hero {
  padding: 56px 0 32px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f6f8 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 44px;
  max-width: 620px;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 18px;
}

.trust-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.trust-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
  margin-right: 8px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.wave-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 30px;
  background: var(--stage);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.wave-card span {
  width: 10px;
  border-radius: 6px;
  background: var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
}

.wave-card span:nth-child(1) { height: 28%; animation-delay: 0s; }
.wave-card span:nth-child(2) { height: 58%; animation-delay: 0.1s; }
.wave-card span:nth-child(3) { height: 88%; animation-delay: 0.2s; }
.wave-card span:nth-child(4) { height: 44%; animation-delay: 0.3s; }
.wave-card span:nth-child(5) { height: 72%; animation-delay: 0.4s; background: #fbbf24; }
.wave-card span:nth-child(6) { height: 36%; animation-delay: 0.5s; }
.wave-card span:nth-child(7) { height: 64%; animation-delay: 0.6s; }
.wave-card span:nth-child(8) { height: 24%; animation-delay: 0.7s; }

@keyframes pulse {
  0%, 100% { transform: scaleY(0.72); }
  50% { transform: scaleY(1.08); }
}

.wave-card-label {
  position: absolute;
  left: 20px;
  top: 18px;
  color: #fca5a5;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

/* Sections */
.section {
  padding: 56px 0;
}

.section > .wrap > h2,
.section-title {
  margin-bottom: 22px;
}

.tool-section {
  padding-top: 40px;
}

/* Recorder */
.recorder {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.recorder-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.status-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #98a2b3;
}

.status-dot.recording {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.14);
}

.status-dot.paused {
  background: var(--amber);
}

.usage-badge {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.recorder-stage {
  position: relative;
  padding: 22px 20px 24px;
  background: var(--stage);
  color: var(--stage-text);
  text-align: center;
}

#level-canvas {
  display: block;
  width: 100%;
  height: 120px;
}

.timer {
  font-family: var(--mono);
  font-size: 40px;
  font-weight: 700;
  margin: 8px 0 16px;
}

.stage-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.recorder-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
}

.field {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

.field select,
.field input,
.summary-actions select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.upload-field {
  align-items: start;
}

.file-button {
  width: fit-content;
  cursor: pointer;
}

.player {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #f8fafb;
}

.player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.player-kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.player-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.player-icon {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.player-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.player-toggle {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.player-toggle .icon-pause,
.player-mute .icon-muted {
  display: none;
}

.player-toggle[data-playing="true"] .icon-play,
.player-mute[data-muted="true"] .icon-volume {
  display: none;
}

.player-toggle[data-playing="true"] .icon-pause,
.player-mute[data-muted="true"] .icon-muted {
  display: block;
}

.player-seek,
.player-volume input {
  min-width: 0;
  width: 100%;
  accent-color: var(--accent);
}

.player-seek {
  flex: 1 1 180px;
}

.player-time {
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
}

.player-rate {
  min-height: 44px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.player-volume {
  display: flex;
  align-items: center;
  gap: 6px;
}

.player-volume input {
  width: 84px;
}

.chunks {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.chunks-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

#chunk-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#chunk-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  font-size: 14px;
}

.chunk-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.chunk-play {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--accent-dark);
  cursor: pointer;
}

.chunk-play svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.chunk-play:hover,
.chunk-play.active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.transcript .ts.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.advanced {
  border-bottom: 1px solid var(--line);
}

.advanced summary {
  padding: 14px 16px;
  cursor: pointer;
  font-weight: 700;
}

.advanced-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 16px 18px;
}

.field-wide {
  grid-column: 1 / -1;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.license-row,
.license-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.license-row input,
.license-form input {
  flex: 1;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

.license-box {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.recorder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px;
}

.privacy-note {
  margin: 0;
  padding: 0 16px 18px;
  color: var(--muted);
  font-size: 13px;
}

.progress {
  display: grid;
  gap: 6px;
  padding: 0 16px 16px;
}

.progress-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.2s ease;
}

/* Results */
.results {
  margin-top: 22px;
}

.result-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 10px;
}

.result-meta {
  color: var(--muted);
  font-size: 14px;
}

.result-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}

.summary-actions select {
  width: auto;
  min-height: 36px;
  font-size: 13px;
}

.transcript,
.summary {
  flex: 1;
  min-height: 260px;
  max-height: 560px;
  overflow: auto;
  padding: 14px;
  font-size: 15px;
  line-height: 1.75;
}

.transcript p {
  margin: 0 0 10px;
}

.transcript .ts {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
}

.speaker {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.summary {
  white-space: pre-wrap;
  background: #fcfcfd;
}

.save-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.sessions {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

#session-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#session-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.steps article {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.steps span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

/* Use cases */
.use-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.use-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
}

.use-card:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.use-card h3 {
  margin-bottom: 0;
}

.use-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 0;
}

.use-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
}

.link-arrow {
  margin-top: auto;
  color: var(--accent);
  font-weight: 800;
}

/* Page hero and content */
.page-hero {
  padding: 52px 0 30px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: 38px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.benefit {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.benefit h2 {
  font-size: 20px;
}

.workflow {
  display: grid;
  gap: 16px;
  margin: 0;
  padding-left: 22px;
}

.workflow li {
  padding-left: 6px;
}

.workflow h3 {
  margin-bottom: 4px;
}

.cta-section,
.cta-inline {
  padding-top: 10px;
}

.cta-section p {
  color: var(--muted);
  margin-bottom: 18px;
}

.cta-inline {
  margin-top: 24px;
}

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08), var(--shadow);
}

.price-card .badge {
  position: absolute;
  top: -12px;
  left: 20px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.price {
  font-size: 38px;
  font-weight: 800;
}

.price span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
}

.price-card ul {
  display: grid;
  gap: 7px;
  margin: 0 0 14px;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

/* Guides */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
}

.guide-card:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.prose {
  max-width: 780px;
}

.prose h2 {
  margin-top: 30px;
}

.prose section {
  margin-bottom: 10px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.compare-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th,
.compare-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.compare-table thead th {
  background: var(--surface-2);
  font-size: 13px;
  text-transform: uppercase;
}

.compare-table tbody tr:last-child td {
  border-bottom: 0;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 10px;
}

.faq details {
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* Ads and affiliate */
.ad-slot {
  margin: 28px auto 0;
  max-width: 1120px;
  min-height: 90px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: #98a2b3;
  font-size: 13px;
}

.affiliate-section {
  padding-top: 20px;
}

.affiliate-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: var(--amber-soft);
  border: 1px solid #f0d9b5;
  border-radius: var(--radius);
}

.affiliate-box h2 {
  font-size: 20px;
}

.affiliate-box p {
  margin: 0;
  color: #6b4a18;
  font-size: 14px;
}

.affiliate-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.affiliate-links a {
  padding: 8px 12px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid #ead4b2;
  color: var(--amber);
  font-weight: 700;
  font-size: 14px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 60;
  transform: translateX(-50%);
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 14px;
}

.toast.error {
  background: var(--red);
}

/* Footer */
.site-footer {
  margin-top: 30px;
  padding: 42px 0 24px;
  background: var(--stage);
  color: var(--stage-text);
}

.site-footer a {
  display: block;
  color: #cbd5e1;
  font-size: 14px;
  margin-bottom: 6px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 26px;
}

.footer-grid .muted {
  color: #94a3b8;
}

.foot-title {
  margin-bottom: 10px;
  font-weight: 800;
}

.footer-bottom {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--stage-line);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 38px;
  }

  .result-grid,
  .steps,
  .guide-grid {
    grid-template-columns: 1fr;
  }

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

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

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

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .wrap {
    padding: 0 16px;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 4px;
  }

  .lang-switch {
    margin-left: auto;
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 30px;
  }

  .lead {
    font-size: 16px;
  }

  .section {
    padding: 38px 0;
  }

  .recorder-meta,
  .advanced-grid,
  .benefit-grid,
  .use-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .license-row,
  .license-form {
    flex-direction: column;
    align-items: stretch;
  }

  .player-seek {
    order: 5;
    flex-basis: 100%;
  }

  .player-volume input {
    width: 64px;
  }

  .timer {
    font-size: 32px;
  }

  .result-head {
    flex-direction: column;
    gap: 2px;
  }

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

  .site-footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
}
