/* Jamuzo online guitar tuner and homepage tuner feature. */

.jamuzo-tuner-page {
  --tuner-pink: var(--jamuzo-pink, #ed1164);
  --tuner-purple: var(--jamuzo-purple, #7138db);
  --tuner-blue: #315ee9;
  --tuner-teal: var(--jamuzo-teal, #10aeb1);
  --tuner-orange: var(--jamuzo-orange, #f59b1b);
  --tuner-ink: var(--jamuzo-ink, #09090b);
  --tuner-copy: #29242b;
  --tuner-muted: #625b64;
  --tuner-border: rgba(23, 20, 25, .62);
}

.jamuzo-tuner-page *,
.jamuzo-home-tuner *,
.jamuzo-tuner-page *::before,
.jamuzo-tuner-page *::after,
.jamuzo-home-tuner *::before,
.jamuzo-home-tuner *::after {
  box-sizing: border-box;
}

.jamuzo-tuner-page > .jamuzo-container,
.jamuzo-tuner-shell {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.jamuzo-tuner-shell {
  display: grid;
  gap: clamp(30px, 4.5vw, 54px);
}

.jamuzo-tuner-intro {
  width: min(100%, 980px);
  margin: 8px auto -10px;
  text-align: center;
}

.jamuzo-tuner-intro h1 {
  margin: 5px 0 0;
  color: var(--tuner-ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 950;
  letter-spacing: -.06em;
  line-height: .96;
  text-wrap: balance;
}

.jamuzo-tuner-intro p {
  max-width: 820px;
  margin: 18px auto 0;
  color: #4d474f;
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.65;
}

.jamuzo-tuner {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--tuner-border);
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0, rgba(255,255,255,.98), rgba(255,255,255,0) 42%),
    linear-gradient(145deg, #fff, #f7f3ed);
  box-shadow: 0 6px 0 rgba(17,14,19,.13), 0 24px 48px rgba(22,12,24,.1);
}

.jamuzo-tuner__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.jamuzo-tuner__topline h2 {
  margin: 0;
  color: var(--tuner-ink);
  font-family: Inter, Arial, Helvetica, sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 950;
  letter-spacing: -.05em;
  line-height: 1;
}

.jamuzo-tuner__body {
  display: block;
  padding-top: 0;
}

.jamuzo-tuner__body[hidden] {
  display: none !important;
}

.jamuzo-tuner__workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(330px, .78fr);
  gap: 18px;
  min-width: 0;
}

.jamuzo-tuner__display,
.jamuzo-tuner__controls {
  min-width: 0;
  border: 1px solid rgba(23,20,25,.58);
  border-radius: 18px;
}

.jamuzo-tuner__display {
  position: relative;
  display: flex;
  min-height: 520px;
  padding: clamp(24px, 3vw, 38px);
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(circle at 50% 28%, rgba(49,94,233,.22), transparent 31%),
    radial-gradient(circle at 10% 92%, rgba(237,17,100,.14), transparent 32%),
    linear-gradient(145deg, #0b0c12, #15101d 72%, #101728);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 14px 32px rgba(22,12,24,.1);
}

.jamuzo-tuner__launcher {
  position: absolute;
  z-index: 8;
  top: 18px;
  right: 18px;
  left: 18px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  min-height: 68px;
  padding: 10px 13px;
  border: 1px solid rgba(103,238,240,.34);
  border-radius: 15px;
  background: rgba(9,9,14,.94);
  box-shadow: 0 16px 34px rgba(0,0,0,.34);
  color: #fff;
  cursor: pointer;
  text-align: left;
  backdrop-filter: blur(14px);
  transition: transform .17s ease, border-color .17s ease, background .17s ease, box-shadow .17s ease;
}

.jamuzo-tuner__launcher[hidden],
.is-tuner-running .jamuzo-tuner__launcher,
.is-tuner-pending .jamuzo-tuner__launcher {
  display: none !important;
}

.jamuzo-tuner__launcher:disabled {
  cursor: wait;
}

.jamuzo-tuner__launcher-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(103,238,240,.32);
  border-radius: 12px;
  background: rgba(16,174,177,.17);
  color: #67eef0;
}

.jamuzo-tuner__launcher-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.jamuzo-tuner__launcher-copy,
.jamuzo-tuner__launcher-copy strong,
.jamuzo-tuner__launcher-copy small {
  display: block;
  min-width: 0;
}

.jamuzo-tuner__launcher-copy strong {
  color: #fff;
  font-size: clamp(15px, 1.7vw, 18px);
  font-weight: 950;
  letter-spacing: -.02em;
}

.jamuzo-tuner__launcher-copy small {
  margin-top: 3px;
  color: rgba(255,255,255,.76);
  font-size: 10px;
  line-height: 1.35;
}

.jamuzo-tuner__launcher-state {
  padding: 7px 9px;
  border: 1px solid rgba(103,238,240,.25);
  border-radius: 9px;
  background: rgba(16,174,177,.16);
  color: #67eef0;
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .1em;
}

.is-tuner-blocked .jamuzo-tuner__launcher {
  border-color: rgba(245,155,27,.58);
  background: rgba(28,18,8,.96);
}

.is-tuner-blocked .jamuzo-tuner__launcher-icon,
.is-tuner-blocked .jamuzo-tuner__launcher-state {
  border-color: rgba(245,155,27,.45);
  background: rgba(245,155,27,.16);
  color: #ffc96e;
}

@media (hover:hover) and (pointer:fine) {
  .jamuzo-tuner__launcher:hover {
    border-color: rgba(103,238,240,.55);
    background: rgba(15,16,25,.98);
    box-shadow: 0 19px 40px rgba(0,0,0,.4);
    transform: translateY(-2px);
  }
}

.jamuzo-tuner__signal-row {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: #cfc9d3;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.jamuzo-tuner__signal {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.11);
}

.jamuzo-tuner__signal i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #315ee9, #10aeb1, #3fe391);
  transition: width .1s linear;
}

.jamuzo-tuner__readout {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) auto minmax(72px, 1fr);
  align-items: center;
  gap: 18px;
  margin: 22px 0;
}

.jamuzo-tuner__flat {
  color: #a9b9ff;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .13em;
  text-align: right;
}

.jamuzo-tuner__note-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
}

.jamuzo-tuner__note-wrap strong {
  color: #fff;
  font-size: clamp(110px, 13vw, 190px);
  font-weight: 950;
  letter-spacing: -.09em;
  line-height: .74;
  text-shadow: 0 0 35px rgba(49,94,233,.32);
}

.jamuzo-tuner__note-wrap sup {
  margin: -4px 0 0 9px;
  color: #75eef0;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 950;
}

.jamuzo-tuner__cents {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
}

.jamuzo-tuner__meter {
  width: 100%;
}

.jamuzo-tuner__meter-scale,
.jamuzo-tuner__meter-labels {
  display: flex;
  justify-content: space-between;
}

.jamuzo-tuner__meter-scale {
  margin-bottom: 8px;
  color: #77727d;
  font-size: 9px;
  font-weight: 850;
}

.jamuzo-tuner__meter-track {
  position: relative;
  height: 19px;
  border-radius: 999px;
  background: linear-gradient(90deg, #315ee9, #10aeb1 38%, #2fdb86 47%, #2fdb86 53%, #f59b1b 68%, #ed1164);
  box-shadow: inset 0 2px 5px rgba(0,0,0,.4);
}

.jamuzo-tuner__meter-zone {
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: 47%;
  width: 6%;
  border: 2px solid rgba(255,255,255,.72);
  border-radius: 999px;
}

.jamuzo-tuner__meter-track b {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 5px;
  height: 39px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 18px rgba(255,255,255,.8);
  transform: translateX(-50%);
  transition: left .12s ease-out;
}

.jamuzo-tuner__meter-labels {
  margin-top: 11px;
  color: #aaa3af;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
}

.jamuzo-tuner__meter-labels strong {
  color: #4fe69d;
}

.jamuzo-tuner__frequency-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 28px;
}

.jamuzo-tuner__frequency-row span {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  text-align: center;
}

.jamuzo-tuner__frequency-row small,
.jamuzo-tuner__frequency-row strong {
  display: block;
}

.jamuzo-tuner__frequency-row small {
  margin-bottom: 4px;
  color: #9f98a4;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.jamuzo-tuner__frequency-row strong {
  overflow: hidden;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.is-in-tune .jamuzo-tuner__note-wrap strong {
  color: #60efa7;
  text-shadow: 0 0 36px rgba(47,219,134,.38);
}

.is-in-tune .jamuzo-tuner__flat {
  color: #60efa7;
}

.is-close .jamuzo-tuner__note-wrap strong {
  color: #ffe083;
}

.is-flat .jamuzo-tuner__flat {
  color: #8ba4ff;
}

.is-sharp .jamuzo-tuner__flat {
  color: #ff7eaa;
}

.jamuzo-tuner__controls {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 12px 26px rgba(22,12,24,.06);
}

.jamuzo-tuner__control-card {
  display: block;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(23,20,25,.48);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 0 rgba(17,14,19,.08);
}

.jamuzo-tuner__control-label {
  display: block;
  margin-bottom: 9px;
  color: var(--tuner-muted);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.jamuzo-tuner__control-card select {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 40px 0 13px;
  border: 1px solid #77717a;
  border-radius: 10px;
  background-color: #fff;
  color: var(--tuner-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

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

.jamuzo-tuner__mode button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid rgba(23,20,25,.42);
  border-radius: 10px;
  background: #f3f0eb;
  color: var(--tuner-ink);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.jamuzo-tuner__mode button.is-active {
  border-color: #162f8e;
  background: linear-gradient(180deg, #4b76ff, #315ee9);
  box-shadow: 0 3px 0 #16318f;
  color: #fff;
}

.jamuzo-tuner__strings-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.jamuzo-tuner__strings-head .jamuzo-tuner__control-label {
  margin-bottom: 0;
}

.jamuzo-tuner__strings-head button {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid rgba(23,20,25,.38);
  border-radius: 999px;
  background: #f2eee8;
  color: var(--tuner-ink);
  font-size: 9px;
  font-weight: 950;
  cursor: pointer;
  text-transform: uppercase;
}

.jamuzo-tuner__strings-head button.is-active {
  border-color: #087f84;
  background: var(--tuner-teal);
  color: #fff;
}

.jamuzo-tuner__strings {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.jamuzo-tuner__strings button {
  min-width: 0;
  min-height: 72px;
  padding: 8px 4px;
  border: 1px solid rgba(23,20,25,.38);
  border-radius: 10px;
  background: #faf8f4;
  color: var(--tuner-ink);
  cursor: pointer;
}

.jamuzo-tuner__strings button small,
.jamuzo-tuner__strings button strong,
.jamuzo-tuner__strings button span {
  display: block;
}

.jamuzo-tuner__strings button small {
  color: #7b747d;
  font-size: 7px;
  font-weight: 900;
  text-transform: uppercase;
}

.jamuzo-tuner__strings button strong {
  margin: 5px 0 1px;
  font-size: 20px;
  font-weight: 950;
}

.jamuzo-tuner__strings button span {
  color: var(--tuner-muted);
  font-size: 9px;
  font-weight: 800;
}

.jamuzo-tuner__strings button.is-active {
  border-color: #315ee9;
  background: #315ee9;
  box-shadow: 0 3px 0 #16318f;
  color: #fff;
}

.jamuzo-tuner__strings button.is-active small,
.jamuzo-tuner__strings button.is-active span {
  color: rgba(255,255,255,.8);
}

.jamuzo-tuner__strings button.is-detected {
  border-color: #087f84;
  background: #e9fbfa;
  box-shadow: inset 0 0 0 2px var(--tuner-teal);
}

.jamuzo-tuner__guide-link {
  display: inline-flex;
  margin-top: 12px;
  color: #087f84;
  font-size: 11px;
  font-weight: 900;
  text-decoration: none;
}

.jamuzo-tuner__calibration > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px;
  align-items: center;
  gap: 10px;
}

.jamuzo-tuner__calibration input {
  width: 100%;
  accent-color: #315ee9;
}

.jamuzo-tuner__calibration output {
  color: var(--tuner-ink);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.jamuzo-tuner__message {
  margin: 15px 0 0;
  padding: 14px 16px;
  border-left: 5px solid #315ee9;
  border-radius: 4px 12px 12px 4px;
  background: #edf1ff;
  color: #2d2a30;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.jamuzo-tuner__permission-help {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 17px 0 0;
  border-top: 1px solid rgba(23,20,25,.18);
  color: #171419;
}

.jamuzo-tuner__permission-help[hidden] {
  display: none !important;
}

.jamuzo-tuner__permission-help strong {
  display: block;
  color: var(--tuner-ink);
  font-size: 15px;
  font-weight: 950;
}

.jamuzo-tuner__permission-help p {
  margin: 5px 0 0;
  color: #40383f;
  font-size: 12px;
  line-height: 1.55;
}

.jamuzo-tuner__permission-help button {
  display: inline-flex;
  min-width: 170px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 1px solid #08777d;
  border-radius: 12px;
  background: linear-gradient(180deg, #20c8cb, #0d989e);
  box-shadow: 0 4px 0 #05656a;
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  cursor: pointer;
}

.jamuzo-tuner-popular,
.jamuzo-tuner-content,
.jamuzo-tuner-faq {
  padding: clamp(40px, 5vw, 68px) 0;
  border-top: 1px solid rgba(23,20,25,.17);
}

.jamuzo-tuner-popular__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.jamuzo-tuner-popular__grid article {
  display: flex;
  min-height: 225px;
  padding: 24px;
  flex-direction: column;
  border: 1px solid rgba(23,20,25,.34);
  border-top: 4px solid #315ee9;
  border-radius: 14px;
  background: rgba(255,255,255,.95);
}

.jamuzo-tuner-popular__grid article:nth-child(2n) {
  border-top-color: var(--tuner-purple);
}

.jamuzo-tuner-popular__grid article:nth-child(3n) {
  border-top-color: var(--tuner-teal);
}

.jamuzo-tuner-popular__grid article > span {
  color: var(--tuner-muted);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.jamuzo-tuner-popular__grid h3 {
  margin: 17px 0 9px;
  color: var(--tuner-ink);
  font-size: 23px;
  font-weight: 950;
  letter-spacing: -.035em;
}

.jamuzo-tuner-popular__grid strong {
  color: var(--tuner-copy);
  font-size: 14px;
  font-weight: 850;
}

.jamuzo-tuner-popular__grid article > div {
  display: flex;
  gap: 9px;
  margin-top: auto;
  padding-top: 24px;
}

.jamuzo-tuner-popular__grid a {
  display: inline-flex;
  min-height: 40px;
  padding: 0 14px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(23,20,25,.4);
  border-radius: 10px;
  background: #fff;
  color: var(--tuner-ink);
  font-size: 10px;
  font-weight: 950;
  text-decoration: none;
  text-transform: uppercase;
}

.jamuzo-tuner-popular__grid .jamuzo-tuner-popular__open {
  border-color: #16318f;
  background: #315ee9;
  color: #fff;
}

.jamuzo-tuner-content {
  width: 100%;
  max-width: 1100px;
  margin-right: auto;
  margin-left: auto;
}

.jamuzo-tuner-content h2 {
  margin-top: 34px;
  color: var(--tuner-ink);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 950;
  letter-spacing: -.045em;
  line-height: 1.02;
}

.jamuzo-tuner-content h2:first-child {
  margin-top: 0;
}

.jamuzo-tuner-content p {
  color: #4f4951;
  font-size: 16px;
  line-height: 1.75;
}

.jamuzo-tuner-faq__grid {
  display: grid;
  gap: 10px;
}

.jamuzo-tuner-faq details {
  border: 1px solid rgba(23,20,25,.35);
  border-radius: 14px;
  background: #fff;
}

.jamuzo-tuner-faq summary {
  position: relative;
  padding: 20px 54px 20px 20px;
  color: var(--tuner-ink);
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

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

.jamuzo-tuner-faq summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 20px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: #315ee9;
  color: #fff;
  font-size: 18px;
  transform: translateY(-50%);
}

.jamuzo-tuner-faq details[open] summary::after {
  content: "−";
  background: var(--tuner-purple);
}

.jamuzo-tuner-faq details p {
  margin: 0;
  padding: 0 20px 20px;
  color: #514a54;
  font-size: 14px;
  line-height: 1.65;
}

.jamuzo-home-tuner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(310px, .92fr);
  grid-template-areas:
    "copy visual"
    "button button";
  align-items: center;
  column-gap: clamp(32px, 5vw, 68px);
  row-gap: clamp(32px, 4vw, 48px);
  width: min(1380px, calc(100% - 36px));
  margin: clamp(30px, 4vw, 52px) auto;
  padding: clamp(38px, 5vw, 70px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at 86% 20%, rgba(49,94,233,.31), transparent 34%),
    radial-gradient(circle at 6% 86%, rgba(16,174,177,.16), transparent 32%),
    linear-gradient(135deg, #09090d, #17101e 68%, #111a2d);
  box-shadow: 0 6px 0 rgba(17,14,19,.2), 0 28px 54px rgba(22,12,24,.17);
}

.jamuzo-home-tuner__copy {
  position: relative;
  z-index: 1;
  grid-area: copy;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.jamuzo-home-tuner__copy h2 {
  max-width: 780px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(38px, 4.5vw, 66px);
  font-weight: 950;
  letter-spacing: -.06em;
  line-height: .97;
  text-wrap: balance;
}

.jamuzo-home-tuner__copy p {
  max-width: 720px;
  margin: 20px auto 0;
  color: #d5ced9;
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.65;
}

.jamuzo-home-tuner__features {
  display: flex;
  width: 100%;
  max-width: 720px;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 24px auto 0;
}

.jamuzo-home-tuner__features span {
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 999px;
  background: rgba(255,255,255,.065);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.jamuzo-home-tuner__visual {
  position: relative;
  z-index: 1;
  grid-area: visual;
  display: grid;
  justify-items: center;
  padding: clamp(20px, 2vw, 30px);
}

.jamuzo-home-tuner__visual small {
  color: #6beff1;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .16em;
}

.jamuzo-home-tuner__visual strong {
  margin-top: 8px;
  color: #fff;
  font-size: clamp(96px, 11vw, 156px);
  font-weight: 950;
  letter-spacing: -.08em;
  line-height: .78;
}

.jamuzo-home-tuner__visual span {
  margin-top: 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.jamuzo-home-tuner__visual i {
  position: relative;
  width: 100%;
  height: 18px;
  margin-top: 19px;
  border-radius: 999px;
  background: linear-gradient(90deg, #315ee9, #10aeb1 42%, #36dd8d 50%, #f59b1b 74%, #ed1164);
}

.jamuzo-home-tuner__visual i::after {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  width: 5px;
  height: 36px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 18px rgba(255,255,255,.8);
  transform: translateX(-50%);
}

.jamuzo-home-tuner__button {
  grid-area: button;
  display: inline-flex;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  border: 1px solid #16318f;
  border-radius: 15px;
  background: linear-gradient(180deg, #4b76ff, #315ee9);
  box-shadow: 0 5px 0 #16318f, 0 16px 30px rgba(49,94,233,.26);
  color: #fff !important;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .03em;
  text-decoration: none !important;
  text-transform: uppercase;
  transition: transform .17s ease, background .17s ease, box-shadow .17s ease;
}

@media (hover:hover) and (pointer:fine) {
  .jamuzo-home-tuner__button:hover {
    background: linear-gradient(180deg, #385ff0, #203eaf);
    box-shadow: 0 7px 0 #11246e, 0 22px 36px rgba(49,94,233,.34);
    transform: translateY(-3px);
  }
}

@media (max-width: 1050px) {
  .jamuzo-tuner__workspace {
    grid-template-columns: 1fr;
  }

  .jamuzo-tuner__controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 12px;
    padding: 14px;
  }
}

@media (max-width: 760px) {
  .jamuzo-tuner-shell {
    gap: 28px;
  }

  .jamuzo-tuner-intro {
    margin-top: 2px;
    margin-bottom: -4px;
    padding: 0 4px;
  }

  .jamuzo-tuner-intro h1 {
    font-size: clamp(38px, 11.5vw, 54px);
  }

  .jamuzo-tuner-intro p {
    margin-top: 14px;
    font-size: 15px;
  }

  .jamuzo-tuner {
    padding: 18px;
    border-radius: 18px;
  }

  .jamuzo-tuner__topline {
    justify-content: center;
    text-align: center;
  }

  .jamuzo-tuner__topline > div {
    width: 100%;
  }

  .jamuzo-tuner__display {
    min-height: 455px;
    padding: 24px 17px;
    border-radius: 15px;
  }

  .jamuzo-tuner__launcher {
    top: 12px;
    right: 12px;
    left: 12px;
    grid-template-columns: 42px minmax(0,1fr);
    gap: 10px;
    min-height: 0;
    padding: 11px;
  }

  .jamuzo-tuner__launcher-state {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
  }

  .jamuzo-tuner__signal-row {
    grid-template-columns: 1fr;
    gap: 7px;
    text-align: center;
  }

  .jamuzo-tuner__readout {
    grid-template-columns: 1fr;
    gap: 8px;
    margin: 28px 0;
    text-align: center;
  }

  .jamuzo-tuner__flat,
  .jamuzo-tuner__cents {
    text-align: center;
  }

  .jamuzo-tuner__note-wrap strong {
    font-size: clamp(96px, 30vw, 118px);
  }

  .jamuzo-tuner__frequency-row {
    grid-template-columns: 1fr;
  }

  .jamuzo-tuner__controls {
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 15px;
  }

  .jamuzo-tuner__strings {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .jamuzo-tuner__permission-help {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .jamuzo-tuner__permission-help button {
    width: 100%;
    min-width: 0;
  }

  .jamuzo-tuner-popular__grid {
    grid-template-columns: 1fr;
  }

  .jamuzo-tuner-popular__grid article {
    min-height: 0;
  }

  .jamuzo-tuner-popular__grid article > div {
    flex-direction: column;
  }

  .jamuzo-tuner-popular__grid a {
    width: 100%;
  }

  .jamuzo-home-tuner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "visual"
      "button";
    width: calc(100% - 36px);
    margin: 24px auto;
    padding: 32px 21px;
    row-gap: 28px;
    border-radius: 18px;
  }

  .jamuzo-home-tuner__copy h2 {
    font-size: clamp(37px, 11vw, 51px);
  }

  .jamuzo-home-tuner__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 430px;
  }

  .jamuzo-home-tuner__features span {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    padding: 7px 9px;
    text-align: center;
  }

  .jamuzo-home-tuner__visual {
    width: 100%;
    max-width: 560px;
    justify-self: center;
    padding: 25px 19px;
  }

  .jamuzo-home-tuner__button {
    min-height: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jamuzo-tuner__launcher,
  .jamuzo-tuner__meter-track b,
  .jamuzo-home-tuner__button {
    transition: none !important;
  }
}

/* iPhone activation uses the whole tuner as one clean tap target. */
.jamuzo-tuner.is-tuner-needs-gesture {
  cursor: pointer;
}

.jamuzo-tuner.is-tuner-needs-gesture .jamuzo-tuner__launcher {
  touch-action: manipulation;
}
