:root {
  --bg: #0b1020;
  --surface: #111827;
  --surface-raised: #182235;
  --surface-soft: #0f1a2c;
  --text: #f8fafc;
  --muted: #a9b8cc;
  --muted-strong: #cfdae8;
  --border: #2a3a53;
  --border-strong: #3e5575;
  --primary: #60a5fa;
  --primary-hover: #93c5fd;
  --primary-soft: rgba(96, 165, 250, 0.14);
  --accent: #22d3ee;
  --accent-soft: rgba(34, 211, 238, 0.14);
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.14);
  --warning: #fbbf24;
  --warning-soft: rgba(251, 191, 36, 0.13);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.14);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.26);
  --shadow-small: 0 10px 28px rgba(0, 0, 0, 0.18);
  --focus: 0 0 0 4px rgba(96, 165, 250, 0.24);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  position: relative;
  isolation: isolate;
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 8% 4%, rgba(34, 211, 238, 0.1), transparent 28rem),
    radial-gradient(circle at 92% 10%, rgba(96, 165, 250, 0.1), transparent 24rem),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  content: "";
  pointer-events: none;
}

::selection {
  background: rgba(34, 211, 238, 0.35);
  color: var(--text);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button,
a,
summary,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  box-shadow: var(--focus);
}

[hidden] {
  display: none !important;
}

.wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 14px;
  transform: translateY(-180%);
  padding: 9px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(42, 58, 83, 0.88);
  background: rgba(11, 16, 32, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.brand {
  flex: 0 0 auto;
}

.brand-mark {
  display: block;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(34, 211, 238, 0.1);
}

.brand-copy {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.brand-copy small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 26px);
  margin-left: auto;
}

.primary-nav a,
.footer-group a {
  color: var(--muted-strong);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 180ms ease;
}

.primary-nav a:hover,
.footer-group a:hover,
.footer-email:hover {
  color: var(--accent);
}

.language-switcher {
  position: relative;
  color: var(--muted-strong);
  font-size: 0.86rem;
}

.language-switcher summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.76);
  cursor: pointer;
  list-style: none;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher summary::after {
  content: '⌄';
  color: var(--muted);
  font-size: 0.78rem;
}

.language-switcher[open] summary,
.language-switcher summary:hover {
  border-color: var(--primary);
  color: var(--primary-hover);
}

.language-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 150px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.language-menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 7px;
  color: var(--muted-strong);
  text-decoration: none;
  white-space: nowrap;
}

.language-menu a:hover {
  background: var(--primary-soft);
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(96, 165, 250, 0.48);
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.header-cta:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  background: rgba(96, 165, 250, 0.22);
}

.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.mobile-menu-toggle svg,
.primary-action-row svg,
.confirm-button svg,
.result-actions svg,
.result-note svg,
.callout-note svg,
.footer-email svg,
.mic-card-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.mobile-menu-toggle[aria-expanded="true"] {
  border-color: var(--primary);
  color: var(--primary-hover);
}

.menu-icon-line {
  transform-origin: center;
  transition: transform 180ms ease, opacity 180ms ease;
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon-line-top {
  transform: translateY(5px) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon-line-middle {
  opacity: 0;
}

.mobile-menu-toggle[aria-expanded="true"] .menu-icon-line-bottom {
  transform: translateY(-5px) rotate(-45deg);
}

.hero-section {
  padding: clamp(2.7rem, 6vw, 4.8rem) 0 1.8rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  align-items: center;
  gap: clamp(28px, 6vw, 76px);
}

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

.eyebrow,
.section-label,
.panel-kicker,
.section-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px;
  background: var(--accent-soft);
}

.eyebrow::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(34, 211, 238, 0.1);
  content: "";
}

.hero-section h1 {
  max-width: 680px;
  margin: 0;
  color: var(--text);
  font-size: clamp(3.2rem, 8vw, 6.6rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 0.98;
}

.hero-lead {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted-strong);
  font-size: clamp(1.03rem, 1.5vw, 1.25rem);
  line-height: 1.65;
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0;
  margin: 25px 0 0;
  list-style: none;
}

.trust-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.68);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.trust-dot,
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.1);
}

.hero-wave {
  position: relative;
  padding: 20px 20px 16px;
  border: 1px solid rgba(96, 165, 250, 0.27);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(24, 34, 53, 0.94), rgba(15, 26, 44, 0.96));
  box-shadow: var(--shadow-small);
}

.hero-wave-label,
.hero-wave-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: auto;
  margin: 18px 0 12px;
}

.wave-grid {
  fill: none;
  stroke: rgba(169, 184, 204, 0.14);
  stroke-width: 1;
}

.wave-line {
  fill: none;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.45));
}

.hero-wave-status {
  color: var(--success);
}

.tool-section {
  padding: 0 0 clamp(3.2rem, 6vw, 5.5rem);
  scroll-margin-top: 92px;
}

.tool-card {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(350px, 0.88fr);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  background: rgba(17, 24, 39, 0.94);
  box-shadow: var(--shadow);
}

.tool-panel {
  min-width: 0;
  padding: clamp(1.35rem, 3vw, 2.35rem);
}

.result-panel {
  border-left: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(24, 34, 53, 0.78), rgba(15, 26, 44, 0.78));
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 23px;
}

.step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid rgba(96, 165, 250, 0.4);
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 800;
}

.step-index-accent {
  border-color: rgba(34, 211, 238, 0.4);
  background: var(--accent-soft);
  color: var(--accent);
}

.panel-heading h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.panel-kicker {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.13em;
}

.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
}

.mode-tab {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 9px;
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(11, 16, 32, 0.45);
  color: var(--muted-strong);
  text-align: left;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.mode-tab svg {
  grid-row: span 2;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.mode-tab span {
  font-size: 0.86rem;
  font-weight: 800;
}

.mode-tab small {
  color: var(--muted);
  font-size: 0.7rem;
}

.mode-tab:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
  color: var(--text);
}

.mode-tab.is-selected,
.mode-tab[aria-selected="true"] {
  border-color: rgba(96, 165, 250, 0.7);
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.18), rgba(34, 211, 238, 0.1));
  color: var(--primary-hover);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.12);
}

.warning-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  border-radius: var(--radius-sm);
  background: var(--warning-soft);
  color: #fde68a;
}

.warning-banner svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.warning-banner p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.5;
}

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

.primary-button,
.secondary-button,
.text-button,
.audio-test-button,
.confirm-button,
.inline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 15px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.primary-button {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #07101f;
  box-shadow: 0 8px 22px rgba(96, 165, 250, 0.18);
}

.primary-button:hover {
  transform: translateY(-1px);
  border-color: var(--primary-hover);
  background: var(--primary-hover);
  box-shadow: 0 12px 26px rgba(96, 165, 250, 0.24);
}

.primary-button:disabled,
.secondary-button:disabled,
.confirm-button:disabled,
.audio-test-button:disabled {
  transform: none;
  cursor: not-allowed;
  opacity: 0.52;
  box-shadow: none;
}

.secondary-button,
.text-button,
.audio-test-button,
.confirm-button {
  border: 1px solid var(--border-strong);
  background: rgba(24, 34, 53, 0.8);
  color: var(--muted-strong);
}

.secondary-button:hover,
.text-button:hover,
.audio-test-button:hover,
.confirm-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-hover);
}

.text-button {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.text-button:hover {
  border-color: var(--border);
  color: var(--text);
}

.manual-test-block,
.confirm-block {
  margin-top: 22px;
}

.label-row,
.meter-heading,
.progress-label,
.volume-control {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.field-label {
  color: var(--muted-strong);
  font-size: 0.8rem;
  font-weight: 800;
}

.field-helper {
  color: var(--muted);
  font-size: 0.75rem;
}

.manual-controls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 9px;
}

.audio-test-button {
  min-height: 58px;
  padding: 8px 9px;
  font-size: 0.78rem;
}

.test-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(34, 211, 238, 0.38);
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 800;
}

.current-step-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 13px;
  margin-top: 22px;
  padding: 15px;
  border: 1px solid rgba(96, 165, 250, 0.38);
  border-radius: var(--radius-md);
  background: rgba(24, 34, 53, 0.76);
}

.current-step-number {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: var(--primary-hover);
  font-family: var(--mono);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1;
}

.current-step-number small {
  color: var(--muted);
  font-size: 0.72rem;
}

.current-step-copy .section-label {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.64rem;
}

.current-step-copy h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.current-step-copy p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.playback-state {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.playback-state.is-playing {
  border-color: rgba(34, 211, 238, 0.45);
  background: var(--accent-soft);
  color: var(--accent);
}

.playback-state.is-waiting {
  border-color: rgba(251, 191, 36, 0.45);
  background: var(--warning-soft);
  color: #fde68a;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 9px;
}

.confirm-button {
  min-height: 48px;
  font-size: 0.8rem;
}

.confirm-yes:hover:not(:disabled) {
  border-color: rgba(52, 211, 153, 0.7);
  background: var(--success-soft);
  color: var(--success);
}

.confirm-no:hover:not(:disabled) {
  border-color: rgba(248, 113, 113, 0.7);
  background: var(--danger-soft);
  color: var(--danger);
}

.volume-control {
  flex-wrap: wrap;
  margin-top: 22px;
}

.volume-control output,
.meter-heading output {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 800;
}

.volume-control input {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.volume-control .field-helper {
  flex: 1 0 100%;
}

.tool-message,
.error-message {
  min-height: 24px;
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.error-message {
  color: var(--danger);
}

.mic-intro p {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.88rem;
}

.mic-intro ul,
.mic-explainer-card ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 15px 0 0;
  list-style: none;
}

.mic-intro li,
.mic-explainer-card li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.check-dot {
  color: var(--success);
  font-weight: 900;
}

.mic-meter-card {
  margin-top: 22px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(11, 16, 32, 0.45);
}

.meter-track,
.progress-track {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: rgba(169, 184, 204, 0.14);
}

.meter-track {
  margin-top: 12px;
}

.meter-track span,
.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--success));
  transition: width 120ms ease;
}

.result-live {
  padding: 17px;
  border: 1px solid rgba(34, 211, 238, 0.27);
  border-radius: var(--radius-lg);
  background: rgba(11, 16, 32, 0.45);
}

.result-live[data-state="success"] {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.08);
}

.result-live[data-state="warning"] {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.08);
}

.result-live[data-state="error"] {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.08);
}

.result-status-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted-strong);
  font-size: 0.82rem;
}

.status-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-family: var(--mono);
  font-weight: 900;
  line-height: 1;
}

.status-neutral {
  background: rgba(169, 184, 204, 0.18);
  color: var(--muted-strong);
}

.status-positive {
  background: var(--success-soft);
  color: var(--success);
}

.status-negative {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.result-summary {
  margin: 12px 0 18px;
  color: var(--muted-strong);
  font-size: 0.9rem;
  line-height: 1.55;
}

.channel-results {
  display: grid;
  gap: 8px;
}

.channel-result {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(24, 34, 53, 0.66);
}

.channel-symbol,
.info-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 900;
}

.channel-name {
  color: var(--muted-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

.channel-status {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 700;
  text-align: right;
}

.status-neutral-text {
  color: var(--muted);
}

.status-positive-text {
  color: var(--success);
}

.status-negative-text {
  color: var(--danger);
}

.progress-summary {
  margin-top: 19px;
}

.progress-label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.progress-label strong {
  color: var(--muted-strong);
}

.progress-track {
  height: 7px;
  margin-top: 8px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 19px;
}

.result-actions .secondary-button,
.result-actions .text-button {
  min-height: 40px;
  padding: 0 11px;
  font-size: 0.75rem;
}

.copy-feedback {
  margin: 10px 0 0;
  color: var(--success);
  font-size: 0.75rem;
}

.result-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 17px;
  color: var(--muted);
}

.result-note svg {
  flex: 0 0 18px;
  margin-top: 2px;
  color: var(--accent);
}

.result-note p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.55;
}

.tool-footnote {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: min(100%, 900px);
  padding: 13px 0 0;
  margin: 0 auto;
  color: var(--muted);
}

.footnote-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1px solid rgba(251, 191, 36, 0.38);
  border-radius: 8px;
  background: var(--warning-soft);
  color: var(--warning);
  font-family: Georgia, serif;
  font-weight: 700;
}

.tool-footnote p {
  margin: 0;
  font-size: 0.77rem;
}

.tool-footnote strong {
  color: #fde68a;
}

.content-section {
  padding: clamp(3.7rem, 8vw, 6.5rem) 0;
  scroll-margin-top: 84px;
}

.section-tinted {
  border-top: 1px solid rgba(42, 58, 83, 0.55);
  border-bottom: 1px solid rgba(42, 58, 83, 0.55);
  background: rgba(15, 26, 44, 0.56);
}

.section-intro {
  max-width: 730px;
  margin-bottom: 28px;
}

.section-intro h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.065em;
  line-height: 1.08;
}

.section-intro > p:last-child {
  margin: 16px 0 0;
  color: var(--muted-strong);
  font-size: 1rem;
  line-height: 1.72;
}

.steps-grid,
.channel-grid,
.troubleshooting-grid,
.privacy-grid {
  display: grid;
  gap: 12px;
}

.steps-grid {
  grid-template-columns: repeat(3, 1fr);
}

.step-card,
.info-card,
.troubleshooting-card,
.privacy-card,
.mic-explainer-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(17, 24, 39, 0.78);
  box-shadow: var(--shadow-small);
}

.step-card {
  min-height: 205px;
  padding: 20px;
}

.step-number,
.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 900;
}

.step-card h3,
.info-card h3,
.troubleshooting-card h3,
.privacy-card h3,
.mic-explainer-card h3 {
  margin: 18px 0 8px;
  color: var(--text);
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.step-card p,
.info-card p,
.troubleshooting-card p,
.privacy-card p,
.mic-explainer-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.65;
}

.channel-grid {
  grid-template-columns: repeat(4, 1fr);
}

.info-card {
  min-height: 230px;
  padding: 19px;
}

.info-card h3 {
  margin-top: 15px;
}

.callout-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 880px;
  padding: 14px 16px;
  margin-top: 16px;
  border-left: 3px solid var(--accent);
  background: rgba(34, 211, 238, 0.07);
  color: var(--muted-strong);
}

.callout-note svg {
  flex: 0 0 18px;
  margin-top: 3px;
  color: var(--accent);
}

.callout-note p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.6;
}

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

.troubleshooting-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 20px;
}

.troubleshooting-card h3 {
  margin-top: 0;
}

.card-index {
  border-color: rgba(251, 191, 36, 0.36);
  background: var(--warning-soft);
  color: var(--warning);
}

.mic-section-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  align-items: start;
  gap: clamp(26px, 6vw, 80px);
}

.mic-section-layout .section-intro {
  margin-bottom: 0;
}

.inline-action {
  min-height: auto;
  padding: 0;
  margin-top: 20px;
  border: 0;
  border-bottom: 1px solid rgba(96, 165, 250, 0.5);
  border-radius: 0;
  color: var(--primary-hover);
}

.inline-action:hover {
  transform: translateX(2px);
  border-color: var(--accent);
  color: var(--accent);
}

.mic-explainer-card {
  padding: 22px;
}

.mic-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mic-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(34, 211, 238, 0.4);
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

.mic-explainer-card h3 {
  margin-top: 20px;
  font-size: 1.2rem;
}

.mic-explainer-card li span {
  color: var(--success);
  font-weight: 900;
}

.privacy-grid {
  grid-template-columns: repeat(3, 1fr);
}

.privacy-card {
  min-height: 190px;
  padding: 20px;
}

.privacy-card h3 {
  margin-top: 0;
}

.faq-section {
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.faq-list {
  display: grid;
  gap: 9px;
  max-width: 930px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(17, 24, 39, 0.74);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
  padding: 13px 17px;
  color: var(--muted-strong);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

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

.faq-chevron {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.faq-chevron::before,
.faq-chevron::after {
  position: absolute;
  top: 8px;
  left: 2px;
  width: 14px;
  height: 2px;
  border-radius: 3px;
  background: var(--accent);
  content: "";
  transition: transform 180ms ease;
}

.faq-chevron::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-chevron::after {
  transform: rotate(0);
}

.faq-item p {
  padding: 0 17px 17px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.closing-section {
  padding: 0 0 clamp(4rem, 8vw, 7rem);
}

.closing-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(96, 165, 250, 0.4);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(24, 34, 53, 0.95), rgba(15, 26, 44, 0.95));
  box-shadow: var(--shadow-small);
}

.closing-card h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.45rem, 3vw, 2.2rem);
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.closing-card p:last-child {
  max-width: 700px;
  margin: 12px 0 0;
  color: var(--muted);
}

.closing-card .secondary-button {
  flex: 0 0 auto;
  color: var(--primary-hover);
}

.noscript-note {
  padding: 14px 0 32px;
  color: var(--warning);
  font-size: 0.85rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #080d19;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 50px;
  padding: 48px 0 38px;
}

.footer-logo {
  font-size: 1.05rem;
  font-weight: 800;
}

.footer-logo img {
  border-radius: 11px;
}

.footer-brand > p {
  max-width: 470px;
  margin: 17px 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 0.8rem;
  text-decoration: none;
}

.footer-email svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.footer-group {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-group p {
  margin: 0 0 3px;
  color: var(--text);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 0 23px;
  border-top: 1px solid rgba(42, 58, 83, 0.68);
  color: var(--muted);
  font-size: 0.72rem;
}

.footer-bottom p {
  margin: 0;
}

/* Legal templates continue to use the shared shell and stay readable on the new theme. */
.legal-page {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.legal-hero {
  max-width: 760px;
  margin-bottom: 28px;
}

.legal-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  letter-spacing: -0.07em;
  line-height: 1.05;
}

.legal-hero p {
  margin: 16px 0 0;
  color: var(--muted-strong);
}

.info.wide,
.legal-panel {
  padding: clamp(1.3rem, 4vw, 2.7rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(17, 24, 39, 0.86);
  box-shadow: var(--shadow-small);
}

.legal-panel h2 {
  margin: 2rem 0 0.75rem;
  color: var(--text);
  font-size: 1.2rem;
  line-height: 1.25;
}

.legal-panel h2:first-of-type {
  margin-top: 1.25rem;
}

.legal-panel p,
.legal-panel li {
  color: var(--muted-strong);
  line-height: 1.75;
}

.legal-panel li + li {
  margin-top: 0.45rem;
}

.legal-panel a {
  color: var(--primary-hover);
}

.legal-meta {
  color: var(--accent) !important;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 800;
}

.text-center {
  text-align: center;
}

@media (max-width: 980px) {
  .primary-nav {
    gap: 14px;
  }

  .primary-nav a {
    font-size: 0.82rem;
  }

  .tool-card {
    grid-template-columns: 1fr;
  }

  .result-panel {
    border-top: 1px solid var(--border);
    border-left: 0;
  }

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

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 28px, 600px);
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-copy {
    font-size: 0.96rem;
  }

  .header-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 7px;
    border: 1px solid var(--border);
    border-top: 0;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    background: rgba(17, 24, 39, 0.98);
    box-shadow: var(--shadow-small);
  }

  .primary-nav.is-mobile-open {
    display: flex;
  }

  .primary-nav a {
    min-height: 46px;
    padding: 12px 13px;
    border-radius: 9px;
  }

  .primary-nav a:hover {
    background: var(--primary-soft);
  }

  .language-switcher {
    margin: 5px 6px 3px;
  }

  .language-switcher summary {
    justify-content: space-between;
  }

  .language-menu {
    position: static;
    margin-top: 6px;
    box-shadow: none;
  }

  .hero-section {
    padding-top: 2.6rem;
  }

  .hero-inner,
  .mic-section-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-section h1 {
    font-size: clamp(3.1rem, 17vw, 5.3rem);
  }

  .hero-lead {
    font-size: 1rem;
  }

  .hero-wave {
    max-width: 520px;
  }

  .tool-panel {
    padding: 1.15rem;
  }

  .mode-tab {
    min-height: 56px;
    padding: 9px;
  }

  .mode-tab span {
    font-size: 0.76rem;
  }

  .mode-tab small {
    font-size: 0.63rem;
  }

  .manual-controls {
    grid-template-columns: 1fr 1fr;
  }

  .manual-controls .audio-test-button:last-child {
    grid-column: 1 / -1;
  }

  .current-step-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .playback-state {
    grid-column: 2;
    justify-self: start;
  }

  .steps-grid,
  .troubleshooting-grid,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .step-card,
  .info-card,
  .privacy-card {
    min-height: auto;
  }

  .closing-card,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 38px;
  }
}

@media (max-width: 390px) {
  .wrap {
    width: calc(100% - 24px);
  }

  .brand-copy small {
    font-size: 0.55rem;
  }

  .mode-tabs {
    grid-template-columns: 1fr;
  }

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

  .channel-result {
    grid-template-columns: 27px minmax(0, 1fr);
  }

  .channel-status {
    grid-column: 2;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .wave-line {
    filter: none;
  }
}

/* Reference visual system: paper surfaces, bold ink outlines, and friendly tool accents. */
:root {
  --bg: #fff7fb;
  --surface: #fffdf8;
  --surface-raised: #fffdf8;
  --surface-soft: #fff3e5;
  --text: #372733;
  --muted: #78626f;
  --muted-strong: #5d4655;
  --border: rgba(55, 39, 51, 0.16);
  --border-strong: #372733;
  --primary: #9a80ff;
  --primary-hover: #6f55df;
  --primary-soft: #eadfff;
  --accent: #4edfa6;
  --accent-soft: #e9fff6;
  --success: #187a55;
  --success-soft: #e1faed;
  --warning: #a85e2e;
  --warning-soft: #fff0b8;
  --danger: #b34767;
  --danger-soft: #ffe2eb;
  --shadow: 4px 4px 0 rgba(55, 39, 51, 0.09);
  --shadow-small: 3px 3px 0 rgba(55, 39, 51, 0.08);
  --focus: 0 0 0 4px rgba(154, 128, 255, 0.28);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 26px;
  --line: #372733;
  --paper: #fffdf8;
  --cream: #fff0b8;
  --lavender: #eadfff;
  --mint: #4edfa6;
  --sun: #ffd45f;
  --peach: #ff9f82;
  --violet: #9a80ff;
  --wash: #fff3e5;
  --bounce: cubic-bezier(.2, 1.2, .47, 1);
}

html {
  background: var(--bg);
}

body {
  position: relative;
  isolation: isolate;
  background: var(--bg);
  color: var(--text);
}

body::before {
  z-index: -2;
  opacity: 0.1;
  background:
    linear-gradient(135deg, rgba(255, 212, 95, 0.11) 0 12%, transparent 12% 100%),
    linear-gradient(45deg, transparent 0 49%, rgba(154, 128, 255, 0.08) 49% 51%, transparent 51%),
    radial-gradient(var(--line) 0.6px, transparent 0.9px);
  background-size: 260px 260px, 72px 72px, 28px 28px;
}

body::after {
  position: fixed;
  z-index: -1;
  inset: 0;
  opacity: 0.16;
  background:
    repeating-linear-gradient(90deg, transparent 0 70px, rgba(255, 143, 202, 0.06) 70px 72px),
    repeating-linear-gradient(0deg, transparent 0 80px, rgba(78, 223, 166, 0.06) 80px 82px);
  content: "";
  pointer-events: none;
}

::selection {
  background: var(--cream);
  color: var(--text);
}

.wrap {
  width: min(1180px, calc(100% - 32px));
}

.skip-link {
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--text);
  box-shadow: 4px 4px 0 rgba(55, 39, 51, 0.16);
  color: #fff;
}

.site-header {
  border-bottom: 0;
  background: transparent;
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 74px;
  padding: 16px 0 10px;
}

.header-inner::before {
  position: absolute;
  z-index: -1;
  inset: 0 -18px 0;
  border: 1px solid rgba(55, 39, 51, 0.08);
  border-right: 0;
  border-left: 0;
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.82), rgba(255, 253, 248, 0.5));
  box-shadow: 0 10px 24px rgba(55, 39, 51, 0.045);
  content: "";
}

.brand {
  font-weight: 950;
  letter-spacing: 0;
  transition: transform 180ms var(--bounce);
}

.brand:hover {
  transform: rotate(-1deg) translateY(-1px);
}

.brand-mark {
  border: 0;
  border-radius: 14px;
  box-shadow: none;
  filter: drop-shadow(4px 4px 0 var(--line));
}

.brand-copy {
  color: var(--text);
  font-weight: 950;
  letter-spacing: 0;
}

.brand-copy small {
  color: var(--muted);
  font-weight: 850;
}

.primary-nav {
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(55, 39, 51, 0.1);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 8px 22px rgba(55, 39, 51, 0.04);
}

.primary-nav a {
  min-height: 40px;
  padding: 9px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.primary-nav a:hover {
  transform: translateY(-1px);
  border-color: rgba(55, 39, 51, 0.1);
  background: var(--wash);
  color: var(--text);
  box-shadow: 0 6px 14px rgba(55, 39, 51, 0.08);
}

.primary-nav a:nth-child(1):hover { background: rgba(255, 212, 95, 0.56); }
.primary-nav a:nth-child(2):hover { background: rgba(154, 128, 255, 0.18); }
.primary-nav a:nth-child(3):hover { background: rgba(78, 223, 166, 0.22); }
.primary-nav a:nth-child(4):hover { background: rgba(255, 143, 202, 0.22); }

.language-switcher {
  color: var(--text);
}

.language-switcher summary {
  min-height: 42px;
  padding: 8px 12px;
  border: 1.5px solid rgba(55, 39, 51, 0.16);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 8px 20px rgba(55, 39, 51, 0.08);
  color: var(--text);
  font-weight: 850;
}

.language-switcher summary:hover,
.language-switcher[open] summary {
  border-color: rgba(55, 39, 51, 0.3);
  background: #fff;
  color: var(--text);
  box-shadow: 0 12px 24px rgba(55, 39, 51, 0.12);
}

.language-menu {
  border: 1px solid rgba(55, 39, 51, 0.14);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(55, 39, 51, 0.16);
}

.language-menu a:hover {
  background: var(--wash);
  color: var(--text);
}

.header-cta {
  min-height: 42px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 3px 3px 0 rgba(55, 39, 51, 0.1);
  color: #10281c;
}

.header-cta:hover {
  border-color: var(--line);
  background: var(--lime, #c8ef73);
  box-shadow: 4px 4px 0 rgba(55, 39, 51, 0.12);
}

.mobile-menu-toggle {
  border: 2px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 3px 3px 0 rgba(55, 39, 51, 0.12);
  color: var(--text);
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle[aria-expanded="true"] {
  border-color: var(--line);
  background: var(--cream);
  color: var(--text);
  box-shadow: 4px 4px 0 rgba(55, 39, 51, 0.14);
}

.hero-section {
  padding: 56px 0 26px;
}

.hero-inner {
  gap: clamp(28px, 6vw, 70px);
}

.eyebrow,
.section-label,
.panel-kicker {
  color: var(--text);
  font-weight: 950;
}

.eyebrow {
  gap: 8px;
  padding: 7px 13px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 2px 2px 0 rgba(55, 39, 51, 0.12);
}

.eyebrow::before {
  width: 8px;
  height: 8px;
  background: var(--mint);
  box-shadow: 13px 0 0 var(--sun), 26px 0 0 var(--violet);
  margin-right: 25px;
}

.hero-section h1 {
  max-width: 780px;
  margin-top: 18px;
  color: var(--text);
  font-size: clamp(3rem, 6vw, 5.3rem);
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 0.98;
  text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-lead {
  color: var(--muted-strong);
  font-weight: 650;
}

.trust-list {
  gap: 9px;
  margin-top: 20px;
}

.trust-list li,
.trust-list li:nth-child(1),
.trust-list li:nth-child(2),
.trust-list li:nth-child(3) {
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid rgba(55, 39, 51, 0.16);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: none;
  color: var(--text);
  transform: none;
}

.trust-list li:nth-child(1) .trust-dot { background: var(--sun); }
.trust-list li:nth-child(2) .trust-dot { background: var(--mint); }
.trust-list li:nth-child(3) .trust-dot { background: var(--violet); }

.hero-wave {
  border: 1.5px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(245, 237, 255, 0.96));
  box-shadow: 4px 4px 0 rgba(55, 39, 51, 0.1);
}

.hero-wave-label,
.hero-wave-status {
  color: var(--muted);
}

.wave-grid {
  stroke: rgba(55, 39, 51, 0.14);
}

.wave-line {
  stroke: var(--primary-hover);
  filter: drop-shadow(0 0 5px rgba(154, 128, 255, 0.28));
}

.hero-wave-status {
  color: var(--success);
}

.tool-section {
  padding-bottom: 54px;
}

.tool-card {
  border: 1.5px solid var(--line);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: 4px 4px 0 rgba(55, 39, 51, 0.09);
}

.tool-panel {
  background: rgba(255, 253, 248, 0.74);
}

.result-panel {
  border-left: 1.5px solid rgba(55, 39, 51, 0.13);
  background: linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(245, 237, 255, 0.98));
}

.panel-heading h2 {
  color: var(--text);
  font-weight: 950;
  letter-spacing: -0.035em;
}

.panel-kicker,
.section-label {
  color: var(--primary-hover);
}

.step-index {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--sun);
  box-shadow: 2px 2px 0 rgba(55, 39, 51, 0.1);
  color: var(--text);
}

.step-index-accent {
  border-color: var(--line);
  background: var(--mint);
  color: #10281c;
}

.mode-tab {
  border: 1.5px solid rgba(55, 39, 51, 0.2);
  border-radius: 13px;
  background: #fff;
  box-shadow: 2px 2px 0 rgba(55, 39, 51, 0.07);
  color: var(--muted);
  transition: transform 180ms var(--bounce), box-shadow 180ms var(--bounce), background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.mode-tab:hover {
  border-color: var(--line);
  background: var(--wash);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 3px 4px 0 rgba(55, 39, 51, 0.1);
}

.mode-tab.is-selected,
.mode-tab[aria-selected="true"] {
  border-color: var(--line);
  background: var(--sun);
  color: var(--text);
  box-shadow: 2px 2px 0 rgba(55, 39, 51, 0.1);
}

.mode-tab small {
  color: var(--muted);
}

.warning-banner {
  border: 1.5px solid rgba(166, 94, 46, 0.32);
  border-radius: var(--radius-sm);
  background: var(--warning-soft);
  color: var(--warning);
}

.primary-button,
.secondary-button,
.text-button,
.audio-test-button,
.confirm-button,
.inline-action {
  border-radius: 18px;
  font-weight: 950;
  transition: transform 180ms var(--bounce), box-shadow 180ms var(--bounce), background-color 150ms ease, border-color 150ms ease, color 150ms ease, opacity 150ms ease;
}

.primary-button {
  border: 1.5px solid var(--line);
  background: var(--mint);
  box-shadow: 3px 4px 0 rgba(55, 39, 51, 0.1);
  color: #10281c;
}

.primary-button:hover {
  border-color: var(--line);
  background: #c8ef73;
  box-shadow: 4px 5px 0 rgba(55, 39, 51, 0.12);
  color: #10281c;
  transform: translateY(-1px);
}

.secondary-button,
.audio-test-button,
.confirm-button {
  border: 1.5px solid var(--line);
  background: var(--paper);
  box-shadow: 2px 3px 0 rgba(55, 39, 51, 0.08);
  color: var(--text);
}

.secondary-button:hover,
.audio-test-button:hover,
.confirm-button:hover:not(:disabled) {
  border-color: var(--line);
  background: var(--cream);
  box-shadow: 3px 4px 0 rgba(55, 39, 51, 0.1);
  color: var(--text);
  transform: translateY(-1px);
}

.text-button {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--primary-hover);
}

.text-button:hover {
  border-color: transparent;
  background: transparent;
  color: var(--text);
  transform: translateY(-1px);
}

.primary-button:disabled,
.secondary-button:disabled,
.confirm-button:disabled,
.audio-test-button:disabled {
  box-shadow: none;
}

.field-label {
  color: var(--text);
}

.field-helper,
.tool-message,
.mic-intro li,
.mic-explainer-card li {
  color: var(--muted);
}

.test-icon,
.channel-symbol,
.info-symbol {
  border: 1px solid rgba(55, 39, 51, 0.14);
  background: var(--lavender);
  color: var(--primary-hover);
}

.current-step-card {
  border: 1.5px solid rgba(154, 128, 255, 0.34);
  border-radius: var(--radius-md);
  background: rgba(234, 223, 255, 0.54);
}

.current-step-number {
  color: var(--primary-hover);
}

.current-step-copy h3,
.channel-name,
.progress-label strong {
  color: var(--text);
}

.playback-state {
  border-color: rgba(55, 39, 51, 0.18);
  color: var(--muted);
}

.playback-state.is-playing {
  border-color: rgba(24, 122, 85, 0.36);
  background: var(--success-soft);
  color: var(--success);
}

.playback-state.is-waiting {
  border-color: rgba(166, 94, 46, 0.34);
  background: var(--warning-soft);
  color: var(--warning);
}

.confirm-yes:hover:not(:disabled) {
  border-color: var(--line);
  background: var(--success-soft);
  color: var(--success);
}

.confirm-no:hover:not(:disabled) {
  border-color: var(--line);
  background: var(--danger-soft);
  color: var(--danger);
}

.volume-control output,
.meter-heading output,
.status-positive-text {
  color: var(--success);
}

.volume-control input {
  accent-color: var(--primary-hover);
}

.error-message,
.status-negative-text {
  color: var(--danger);
}

.mic-intro p,
.result-summary {
  color: var(--muted-strong);
}

.check-dot {
  color: var(--success);
}

.mic-meter-card {
  border: 1.5px solid rgba(55, 39, 51, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.72);
}

.meter-track,
.progress-track {
  background: rgba(55, 39, 51, 0.12);
}

.meter-track span,
.progress-track span {
  background: linear-gradient(90deg, var(--primary), var(--mint));
}

.result-live {
  border: 1.5px solid rgba(154, 128, 255, 0.34);
  border-radius: 24px;
  background: rgba(234, 223, 255, 0.58);
  box-shadow: 3px 3px 0 rgba(55, 39, 51, 0.08);
}

.result-live[data-state="success"] {
  border-color: rgba(24, 122, 85, 0.36);
  background: rgba(225, 250, 237, 0.78);
}

.result-live[data-state="warning"] {
  border-color: rgba(166, 94, 46, 0.36);
  background: rgba(255, 240, 184, 0.66);
}

.result-live[data-state="error"] {
  border-color: rgba(179, 71, 103, 0.42);
  background: rgba(255, 226, 235, 0.76);
}

.result-status-line {
  color: var(--text);
}

.status-neutral {
  background: rgba(55, 39, 51, 0.12);
  color: var(--muted-strong);
}

.status-positive {
  background: var(--success-soft);
  color: var(--success);
}

.status-negative {
  background: var(--danger-soft);
  color: var(--danger);
}

.status-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.channel-result {
  border: 1px solid rgba(55, 39, 51, 0.14);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.78);
}

.channel-status,
.status-neutral-text {
  color: var(--muted);
}

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

.result-note,
.tool-footnote,
.callout-note {
  color: var(--muted);
}

.result-note svg,
.callout-note svg {
  color: var(--success);
}

.footnote-icon {
  border: 1px solid rgba(166, 94, 46, 0.28);
  background: var(--warning-soft);
  color: var(--warning);
}

.tool-footnote strong {
  color: var(--warning);
}

.content-section {
  padding: 78px 0;
  border-top: 2px dashed rgba(55, 39, 51, 0.13);
}

.section-tinted,
.faq-section,
.closing-section {
  background: rgba(255, 253, 248, 0.56);
}

.section-intro h2 {
  color: var(--text);
  font-weight: 950;
}

.section-intro > p:last-child {
  color: var(--muted-strong);
}

.step-card,
.info-card,
.troubleshooting-card,
.privacy-card,
.mic-explainer-card {
  border: 1.5px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 3px 3px 0 rgba(55, 39, 51, 0.09);
  transition: transform 180ms var(--bounce), box-shadow 180ms var(--bounce);
}

.step-card:hover,
.info-card:hover,
.troubleshooting-card:hover,
.privacy-card:hover,
.mic-explainer-card:hover {
  transform: translateY(-3px);
  box-shadow: 5px 5px 0 rgba(55, 39, 51, 0.11);
}

.step-number,
.card-index {
  border: 1.5px solid var(--line);
  border-radius: 11px;
  background: var(--mint);
  box-shadow: 2px 2px 0 rgba(55, 39, 51, 0.1);
  color: #10281c;
}

.card-index {
  background: var(--cream);
  color: var(--warning);
}

.step-card h3,
.info-card h3,
.troubleshooting-card h3,
.privacy-card h3,
.mic-explainer-card h3 {
  color: var(--text);
  font-weight: 900;
}

.step-card p,
.info-card p,
.troubleshooting-card p,
.privacy-card p,
.mic-explainer-card p {
  color: var(--muted);
}

.callout-note {
  border-left-color: var(--primary);
  background: rgba(154, 128, 255, 0.1);
}

.troubleshooting-card {
  border-left: 5px solid var(--violet);
}

.inline-action {
  border-bottom-color: rgba(111, 85, 223, 0.45);
  color: var(--primary-hover);
}

.inline-action:hover {
  border-bottom-color: var(--accent);
  color: var(--text);
}

.mic-card-top {
  color: var(--primary-hover);
}

.mic-card-icon {
  border-color: var(--line);
  background: var(--lavender);
  color: var(--primary-hover);
}

.privacy-card {
  background: var(--paper);
}

.faq-item {
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 2px 2px 0 rgba(55, 39, 51, 0.08);
}

.faq-item summary {
  color: var(--text);
  font-weight: 900;
}

.faq-item p {
  color: var(--muted);
}

.faq-chevron {
  border: 1.5px solid var(--line);
  border-radius: 7px;
  background: var(--cream);
}

.faq-chevron::before,
.faq-chevron::after {
  background: var(--text);
}

.closing-section {
  padding: 38px 0 78px;
}

.closing-card {
  border: 1.5px solid var(--line);
  border-radius: 26px;
  background: var(--lavender);
  box-shadow: 4px 4px 0 rgba(55, 39, 51, 0.09);
}

.closing-card h2 {
  color: var(--text);
}

.closing-card p:last-child {
  color: var(--muted);
}

.closing-card .secondary-button {
  background: var(--sun);
}

.noscript-note {
  border: 1.5px solid var(--warning);
  border-radius: 16px;
  background: var(--warning-soft);
  box-shadow: 3px 3px 0 rgba(55, 39, 51, 0.08);
  color: var(--warning);
}

.site-footer {
  margin-top: 18px;
  border-top: 2px solid var(--line);
  background: var(--paper);
  color: var(--text);
}

.footer-logo {
  color: var(--text);
  font-weight: 950;
}

.footer-logo img {
  filter: drop-shadow(3px 3px 0 var(--line));
}

.footer-brand > p,
.footer-email,
.footer-nav a,
.footer-bottom {
  color: var(--muted);
}

.footer-email:hover,
.footer-nav a:hover {
  color: var(--text);
}

.footer-email svg {
  color: var(--primary-hover);
}

.footer-group p {
  color: var(--text);
}

.footer-bottom {
  border-top-color: rgba(55, 39, 51, 0.14);
}

.legal-hero h1,
.legal-panel h2,
.legal-panel h3 {
  color: var(--text);
  font-weight: 950;
}

.legal-hero p,
.legal-panel p,
.legal-panel li {
  color: var(--muted-strong);
}

.info.wide,
.legal-panel {
  border: 1.5px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 3px 3px 0 rgba(55, 39, 51, 0.09);
}

.legal-panel a {
  color: var(--primary-hover);
  text-decoration-color: var(--violet);
}

.legal-meta {
  color: var(--primary-hover) !important;
}

@media (max-width: 980px) {
  .result-panel {
    border-top: 1.5px solid rgba(55, 39, 51, 0.13);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  .header-inner {
    padding: 12px 0 10px;
  }

  .header-inner::before {
    inset: 0 -14px 0;
  }

  .primary-nav.is-mobile-open {
    border: 2px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    box-shadow: 5px 5px 0 rgba(55, 39, 51, 0.12);
  }

  .primary-nav.is-mobile-open a {
    border-radius: 12px;
  }

  .hero-section {
    padding-top: 50px;
  }

  .hero-section h1 {
    font-size: clamp(2.75rem, 12vw, 4.4rem);
  }

  .tool-card {
    border-radius: 22px;
    box-shadow: 3px 3px 0 rgba(55, 39, 51, 0.09);
  }

  .tool-panel {
    background: rgba(255, 253, 248, 0.82);
  }

  .content-section {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .hero-section h1 {
    font-size: clamp(2.55rem, 13vw, 4rem);
  }

  .tool-card {
    border-radius: 20px;
  }
}

/* Language switcher: compact globe button with a highlighted current locale. */
.language-switcher {
  position: relative;
  flex: 0 0 auto;
  color: var(--text);
  font-size: 0.9rem;
}

.language-switcher summary {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 150px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(55, 39, 51, 0.22);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(55, 39, 51, 0.07);
  color: var(--text);
  cursor: pointer;
  font-size: 0.98rem;
  font-weight: 850;
  line-height: 1;
  list-style: none;
  white-space: nowrap;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.language-switcher summary::-webkit-details-marker {
  display: none;
}

.language-switcher summary::after {
  width: 0;
  height: 0;
  margin-left: auto;
  border-top: 6px solid #9b8b98;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
  content: "";
  transition: transform 180ms ease;
}

.language-switcher[open] summary::after {
  transform: rotate(180deg);
}

.language-switcher summary:hover,
.language-switcher[open] summary {
  border-color: rgba(55, 39, 51, 0.34);
  box-shadow: 0 7px 16px rgba(55, 39, 51, 0.11);
  transform: translateY(-1px);
}

.language-globe {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: var(--primary-hover);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.language-current-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

.language-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  display: grid;
  gap: 2px;
  min-width: 200px;
  padding: 8px;
  border: 1px solid rgba(55, 39, 51, 0.16);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(55, 39, 51, 0.15);
}

.language-menu a,
.language-menu .language-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #7b6875;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease;
}

.language-menu a:hover {
  background: var(--wash);
  color: var(--text);
}

.language-menu .language-option.is-current {
  background: var(--cream);
  color: var(--text);
}

@media (max-width: 760px) {
  .language-switcher {
    width: auto;
    margin: 5px 6px 3px;
  }

  .language-switcher summary {
    width: 100%;
    min-width: 0;
    min-height: 48px;
  }

  .language-menu {
    position: static;
    min-width: 0;
    margin-top: 8px;
    box-shadow: none;
  }
}
