:root {
  color-scheme: light;
  --ink: #17332c;
  --muted: #5b6f68;
  --soft: #f6f4ee;
  --paper: #fffdf8;
  --line: #d9e1d8;
  --green: #0d5c46;
  --green-2: #16815f;
  --mint: #dff3e8;
  --yellow: #f7c948;
  --coral: #e66b55;
  --blue: #537895;
  --shadow: 0 18px 50px rgba(23, 51, 44, 0.10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
input,
select {
  font: inherit;
}



.hero-copy,
.hero-panel,
.meter-card,
.settings-panel,
.tool-card,
.learn-grid article,
.wave-layout,
.exposure-layout {
  min-width: 0;
}

canvas {
  display: block;
  width: 100%;
  background: #f9fbf6;
  border: 1px solid var(--line);
  border-radius: 8px;
}

#meterCanvas {
  height: 220px;
}

#waveCanvas {
  height: 300px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(246, 244, 238, 0.92);
  border-bottom: 1px solid rgba(217, 225, 216, 0.75);
  backdrop-filter: blur(18px);
}

.brand,
.nav,
.trust-list,
.hero-actions,
.control-row,
.meter-topline,
.metric-grid,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
}

.brand-logo {
  width: 34px;
  height: 34px;
  display: block;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 40%, var(--paper) 40% 47%, transparent 47%),
    linear-gradient(180deg, var(--green), var(--green-2));
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.2);
}

.nav {
  justify-content: center;
  gap: clamp(10px, 2vw, 28px);
  color: var(--muted);
  font-size: 0.95rem;
}

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

.header-action {
  color: var(--green);
  font-weight: 750;
}

.hero,
.tool-band,
.tool-grid,
.learn-band,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(32px, 6vw, 74px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: 54px 0 34px;
}

.meter-hero {
  grid-template-columns: minmax(240px, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(24px, 4vw, 46px);
  align-items: start;
  min-height: auto;
  padding: 34px 0 42px;
}

.meter-hero h1 {
  font-size: clamp(2.65rem, 4.8vw, 4.65rem);
}

.meter-hero .hero-text {
  max-width: 520px;
}

.meter-hero .hero-actions {
  margin-top: 24px;
}

.meter-hero .meter-layout {
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.46fr);
  gap: 14px;
}

.meter-hero .settings-panel {
  padding: 20px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.65rem, 6vw, 5.25rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: 1.12rem;
}

.hero-text,
.section-heading p,
.tool-card p,
.learn-grid p,
.site-footer p,
.small-copy {
  color: var(--muted);
}

.hero-text {
  max-width: 620px;
  margin: 24px 0 0;
  font-size: 1.18rem;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

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

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.control-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.control-row .button {
  width: 100%;
}

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

.primary:hover {
  background: var(--green-2);
}

.secondary {
  color: var(--green);
  background: transparent;
  border-color: #b9cec3;
}

.control-toggle.is-running {
  color: #fff;
  background: var(--coral);
  border-color: var(--coral);
}

.control-toggle.is-running:hover {
  background: #c64f3c;
  border-color: #c64f3c;
}

.trust-list {
  gap: 12px;
  flex-wrap: wrap;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
  color: var(--muted);
}

.trust-list li {
  padding: 7px 10px;
  background: var(--mint);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-panel {
  position: relative;
}

.hero-panel canvas {
  min-height: 360px;
  box-shadow: var(--shadow);
}

.hero-reading {
  position: absolute;
  right: 18px;
  bottom: 18px;
  min-width: 150px;
  padding: 14px 16px;
  color: #fff;
  background: rgba(13, 92, 70, 0.92);
  border-radius: 8px;
}

.hero-reading span,
.label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-reading span {
  color: rgba(255, 255, 255, 0.76);
}

.hero-reading strong {
  display: block;
  margin-top: 3px;
  font-size: 2.1rem;
  line-height: 1;
}

.tool-band,
.learn-band {
  padding: 74px 0;
}

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

.section-heading p {
  margin: 16px 0 0;
  font-size: 1.08rem;
}

.meter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 20px;
  align-items: start;
}

.meter-card,
.settings-panel,
.tool-card,
.learn-grid article {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(23, 51, 44, 0.06);
}

.meter-card,
.settings-panel,
.tool-card {
  padding: clamp(18px, 3vw, 28px);
}

.meter-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 190px);
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.meter-actions {
  display: grid;
  min-width: 0;
  gap: 12px;
  justify-items: stretch;
}

.meter-actions .control-toggle {
  width: 100%;
  min-width: 0;
}

.db-value {
  display: block;
  margin-top: 2px;
  font-size: clamp(3.2rem, 10vw, 6.4rem);
  font-weight: 850;
  line-height: 1;
}

.status-pill {
  flex: none;
  padding: 8px 12px;
  color: var(--green);
  background: var(--mint);
  border-radius: 999px;
  font-weight: 800;
  text-align: center;
}

.gauge {
  margin-bottom: 18px;
}

.gauge-track {
  position: relative;
  height: 16px;
  overflow: hidden;
  background: linear-gradient(90deg, var(--green) 0%, var(--green-2) 48%, var(--yellow) 66%, var(--coral) 100%);
  border-radius: 999px;
}

.gauge-fill {
  position: absolute;
  inset: 0 0 0 auto;
  width: 100%;
  height: 100%;
  background: #e9efe8;
  border-radius: inherit;
  transition: width 120ms ease;
}

.gauge-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

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

.metric-grid div {
  min-width: 0;
  padding: 14px;
  background: #f7f9f4;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metric-grid strong {
  display: block;
  margin-top: 3px;
  font-size: 1.32rem;
}

.meter-graphs {
  display: grid;
  gap: 12px;
}

.graph-panel {
  display: grid;
  gap: 7px;
}

.graph-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.spectrum-bands {
  margin: 8px 0 2px;
}

.spectrum-bands div {
  padding: 10px 12px;
}

.spectrum-bands strong {
  font-size: 1.05rem;
}

.mic-help {
  min-height: 0;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.settings-panel h3 + label,
.tool-card label {
  display: block;
  margin-top: 14px;
}

label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

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

.range-control {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

.range-control output {
  min-width: 64px;
  font-weight: 850;
  text-align: right;
}

.small-copy {
  margin: 12px 0 24px;
  font-size: 0.92rem;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 4px;
  margin: 10px 0 24px;
  background: #edf3ec;
  border-radius: 8px;
}

.segmented button {
  min-height: 38px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 850;
}

.segmented button.active {
  color: var(--green);
  background: #fff;
  box-shadow: 0 2px 10px rgba(23, 51, 44, 0.08);
}

.compact-list {
  padding-left: 18px;
  color: var(--muted);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 24px 0 74px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tool-card.wide {
  grid-column: 1 / -1;
}

.tool-card-heading {
  display: grid;
  gap: 3px;
}

.tool-card h2 {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.tone-readout {
  padding: 16px;
  color: var(--green);
  background: var(--mint);
  border-radius: 8px;
  font-size: 2.3rem;
  font-weight: 850;
  line-height: 1;
}

.tap-button {
  width: 100%;
  min-height: 178px;
  display: grid;
  place-items: center;
  gap: 0;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: inset 0 -12px 28px rgba(0, 0, 0, 0.12);
  touch-action: manipulation;
}

.tap-button:active {
  transform: translateY(1px);
}

.tap-button span {
  font-size: clamp(4rem, 12vw, 6.4rem);
  font-weight: 900;
  line-height: 0.9;
}

.tap-button small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.metronome-face,
.pitch-readout,
.exposure-result {
  background: #f7f9f4;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.metronome-face {
  min-height: 150px;
  display: grid;
  place-items: center;
  color: var(--green);
}

.metronome-face span {
  font-size: 4.8rem;
  font-weight: 900;
  line-height: 1;
}

.metronome-face.pulse {
  animation: beatPulse 170ms ease-out;
}

.metronome-face.accent {
  color: var(--coral);
}

@keyframes beatPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.035); }
  100% { transform: scale(1); }
}

.toggle-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.toggle-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
}

.pitch-readout {
  min-height: 132px;
  display: grid;
  place-items: center;
  text-align: center;
}

.pitch-readout output {
  color: var(--green);
  font-size: clamp(3.2rem, 8vw, 5.4rem);
  font-weight: 900;
  line-height: 0.95;
}

.pitch-readout span {
  color: var(--muted);
  font-weight: 800;
}

.tuner-line {
  position: relative;
  height: 38px;
  margin: 4px 0;
}

.tuner-line span {
  position: absolute;
  left: 0;
  right: 0;
  top: 18px;
  height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--yellow), var(--green), var(--yellow), var(--coral));
  border-radius: 999px;
}

.tuner-line i {
  position: absolute;
  left: 50%;
  top: 4px;
  width: 4px;
  height: 30px;
  background: var(--ink);
  border-radius: 999px;
  transform: translateX(-50%);
  transition: transform 100ms ease;
}

.exposure-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: stretch;
}

.exposure-result {
  padding: 22px;
}

.exposure-result strong {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: clamp(2.8rem, 8vw, 5rem);
  line-height: 1;
}

.exposure-result p {
  margin-bottom: 0;
}

.metric-grid.small {
  margin-bottom: 0;
}

.wave-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: center;
}

.wave-controls {
  display: grid;
  gap: 8px;
}

.learn-band {
  border-top: 1px solid var(--line);
}

.learn-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.learn-grid article {
  padding: 22px;
}

.learn-grid h2 {
  font-size: 1.25rem;
  line-height: 1.2;
}

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

.faq-list,
.policy-list {
  display: grid;
  gap: 12px;
  width: min(900px, 100%);
}

.faq-list details,
.policy-list article {
  padding: 20px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

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

.faq-list p,
.policy-list p {
  margin-bottom: 0;
}

.contact-panel {
  display: grid;
  gap: 14px;
  width: min(760px, 100%);
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.contact-panel a {
  color: var(--green);
  font-weight: 850;
}

.seo-page {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: 82px 0 56px;
}

.site-footer {
  justify-content: space-between;
  gap: 20px;
  padding: 32px 0 46px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 6px 0 0;
}

.site-footer a {
  color: var(--green);
  font-weight: 800;
}

.footer-links button {
  border: 0;
  padding: 0;
  color: var(--green);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.footer-links button:hover {
  color: var(--green-2);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

.cookie-banner {
  position: fixed;
  right: auto;
  bottom: max(16px, env(safe-area-inset-bottom));
  left: 50%;
  z-index: 100;
  display: flex;
  width: min(560px, calc(100% - 28px));
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 14px 16px;
  background: rgba(255, 253, 248, 0.98);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(23, 51, 44, 0.16);
  transform: translateX(-50%);
}

.cookie-copy {
  min-width: 0;
}

.cookie-copy strong {
  display: block;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cookie-copy p {
  margin: 3px 0 2px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.38;
}

.cookie-link,
.cookie-settings-button {
  color: var(--green);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.cookie-settings-button {
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.cookie-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.cookie-button {
  min-width: 76px;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 850;
}

.cookie-button.primary {
  color: var(--paper);
  background: var(--green);
  border-color: var(--green);
}

.cookie-button.secondary {
  color: var(--green);
  background: var(--mint);
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav {
    display: none;
  }

  .hero,
  .meter-layout,
  .wave-layout,
  .exposure-layout,
  .learn-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .meter-hero {
    grid-template-columns: 1fr;
    padding-top: 18px;
  }

  .meter-hero .meter-layout {
    order: -1;
    grid-template-columns: 1fr;
  }

  .hero-panel canvas {
    min-height: 280px;
  }

  .tap-button {
    min-height: 150px;
  }

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

@media (max-width: 620px) {
  .site-header {
    padding: 14px 18px;
  }

  .header-action {
    display: none;
  }

  .hero,
  .tool-band,
  .tool-grid,
  .learn-band,
  .site-footer {
    width: min(1180px, calc(100% - 96px));
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero-actions,
  .control-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .footer-links {
    justify-content: flex-start;
  }

  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .cookie-button {
    flex: 1;
  }

  .meter-topline {
    grid-template-columns: 1fr;
  }

  .meter-actions {
    width: 100%;
    justify-items: stretch;
  }

  .meter-actions .control-toggle {
    width: 100%;
    min-width: 0;
  }

  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .metric-grid div {
    padding: 9px;
  }

  .metric-grid strong {
    font-size: 1.05rem;
  }

  .metric-grid .label {
    font-size: 0.66rem;
    letter-spacing: 0.035em;
  }

  .meter-card,
  .settings-panel {
    width: 100%;
    max-width: calc(100vw - 96px);
    justify-self: start;
    padding: 16px;
    overflow: hidden;
  }

  #meterCanvas {
    height: 160px;
  }

  .hero-reading {
    position: static;
    margin-top: 10px;
  }
}


@media (max-width: 620px) {
  h1 {
    max-width: 12.5ch;
    font-size: clamp(1.95rem, 8.8vw, 2.12rem);
    line-height: 1.14;
  }

  .hero-text {
    max-width: 31ch;
    font-size: 1.02rem;
  }

  .trust-list {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
  }

  .trust-list li {
    width: 100%;
    padding: 9px 11px;
  }

  .hero-panel canvas {
    min-height: 240px;
  }

  .tool-card h2 {
    font-size: 1.55rem;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 2rem;
  }

  .db-value {
    font-size: 3rem;
  }
}
