/* The free guitar tuner, in the public site's look: ink on white, Manrope,
   one framed workspace. Octave's teal marks "in tune"; the selected string
   and the needle are ink. The ids and data-state values are read by tuner.js. */
.tuner-page { --tuner-ink: #171819; --tuner-muted: #606162; --tuner-line: #d5d5d2; --tuner-ok: #008286; display: block; max-width: 1320px; margin: auto; padding: 0 5% 72px; color: var(--tuner-ink); }
.tuner-page:focus { outline: none; }
.tuner-page :is(button, a, summary):focus-visible { outline: 3px solid #2453c6; outline-offset: 4px; }
.tuner-page button:disabled { opacity: .5; cursor: not-allowed; }
.tuner-page p { margin: 0; }
.tuner-kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tuner-muted); margin-bottom: 16px !important; }

.tuner-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 6%; align-items: center; padding: 48px 0 36px; }
.good-company .tuner-hero h1 { font-size: clamp(44px, 5.4vw, 76px); letter-spacing: -.045em; margin: 0; }
.tuner-lead { margin-top: 22px !important; font-size: 18px; max-width: 560px; }
.tuner-profile { display: inline-block; margin-top: 18px !important; padding: 6px 12px; border: 1px solid var(--tuner-line); border-radius: 99px; font-size: 13px; color: var(--tuner-muted); }
.tuner-hero-art { width: 100%; max-width: 380px; height: auto; justify-self: center; }

.tuner-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); border: 1px solid var(--tuner-ink); background: #fff; }
.tuner-instrument, .tuner-listen { padding: 32px; min-width: 0; }
.tuner-instrument { border-right: 1px solid var(--tuner-line); }
.tuner-section-label { display: flex; align-items: center; gap: 12px; }
.tuner-section-label > span { display: inline-grid; place-items: center; min-width: 34px; height: 24px; padding: 0 6px; border: 1px solid var(--tuner-ink); font-size: 12px; font-weight: 500; letter-spacing: .08em; }
.good-company .tuner-section-label h2 { font-size: 22px; letter-spacing: -.02em; margin: 0; }
.tuner-string-help { color: var(--tuner-muted); font-size: 14px; margin: 16px 0 18px !important; }

.tuner-strings { display: grid; gap: 6px; }
.tuner-string { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--tuner-muted); font: inherit; cursor: pointer; }
.tuner-string:hover { background: #f4f4f2; }
.tuner-string[aria-pressed=true] { border-color: var(--tuner-ink); background: #fff; color: var(--tuner-ink); box-shadow: 4px 4px 0 var(--tuner-ink); }
.tuner-string-number { width: 16px; flex-shrink: 0; font-size: 13px; }
.tuner-string-line { --string-width: 5px; display: block; flex: 1; height: var(--string-width); border-radius: 3px; background: repeating-linear-gradient(95deg, #8d8a84 0 1px, #c9c6bf 1px 3px); }
.tuner-string:nth-child(2) .tuner-string-line { --string-width: 4px; }
.tuner-string:nth-child(3) .tuner-string-line { --string-width: 3px; }
.tuner-string:nth-child(4) .tuner-string-line { --string-width: 2px; background: #9b9993; }
.tuner-string:nth-child(5) .tuner-string-line { --string-width: 1.5px; background: #9b9993; }
.tuner-string:nth-child(6) .tuner-string-line { --string-width: 1px; background: #9b9993; }
.tuner-string[aria-pressed=true] .tuner-string-line { filter: brightness(.6); }
.tuner-string strong { min-width: 36px; font-size: 22px; font-weight: 700; line-height: 1.1; }
.tuner-string small { padding-left: 2px; font-size: 11px; }
.tuner-string-ends { display: flex; justify-content: space-between; margin: 8px 4px 0; font-size: 12px; color: var(--tuner-muted); }
.tuner-tip { margin: 22px 0 18px !important; padding-top: 18px; border-top: 1px solid var(--tuner-line); font-size: 14px; color: var(--tuner-muted); }
.tuner-help { border-top: 1px solid var(--tuner-line); padding-top: 16px; }
.tuner-help summary { cursor: pointer; font-size: 15px; font-weight: 500; }
.tuner-help :is(li, p) { font-size: 14px; color: var(--tuner-muted); }
.tuner-help ol { padding-left: 20px; }
.tuner-help li { margin-bottom: 10px; }

.tuner-display { padding: 24px 0 18px; text-align: center; }
.tuner-target-label { margin-bottom: 10px !important; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--tuner-muted); }
.tuner-note { display: flex; flex-direction: column; align-items: center; }
.tuner-note > strong { font-size: 88px; font-weight: 500; line-height: 1.1; letter-spacing: -.06em; }
.tuner-note small { padding-left: 6px; font-size: 28px; letter-spacing: -.03em; }
.tuner-note > span { margin: 2px 0 28px; font-size: 13px; color: var(--tuner-muted); font-variant-numeric: tabular-nums; }
.tuner-meter { position: relative; height: 38px; margin: 0 10px; }
.tuner-meter-ticks { position: absolute; left: 0; right: 0; top: 13px; height: 12px; border-right: 1px solid #bdbcb8; background: repeating-linear-gradient(to right, #bdbcb8 0 1px, transparent 1px 5%); }
.tuner-meter-center { position: absolute; z-index: 1; left: 42%; top: 6px; bottom: 3px; width: 16%; border-radius: 3px; background: #e8f4f4; }
.tuner-meter-center::after { content: ''; position: absolute; left: 50%; top: 2px; width: 1px; height: 26px; background: var(--tuner-ok); }
.tuner-needle { position: absolute; z-index: 2; left: 50%; bottom: 0; width: 3px; height: 36px; border-radius: 3px; background: var(--tuner-ink); transform: translateX(-50%); transition: left .15s ease; }
.tuner-meter-labels { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--tuner-muted); }
.tuner-reading { min-height: 26px; margin: 24px 0 4px !important; font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.tuner-cents { min-height: 18px; font-size: 13px; color: var(--tuner-muted); font-variant-numeric: tabular-nums; }
.tuner-display[data-state=tuned] .tuner-reading { color: var(--tuner-ok); }
.tuner-display[data-state=tuned] .tuner-needle { background: var(--tuner-ok); }

.tuner-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tuner-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 52px; padding: 12px 16px; border: 1px solid var(--tuner-ink); border-radius: 3px; background: #fff; color: var(--tuner-ink); font: 500 15px/1.3 'Manrope', sans-serif; text-decoration: none; cursor: pointer; }
.tuner-reference:hover { background: #f1f1ef; }
.tuner-icon { width: 15px; height: 15px; fill: currentColor; flex-shrink: 0; }
.tuner-mic { background: var(--tuner-ink); color: #fff; }
.tuner-mic:hover { background: #303235; }
.tuner-mic-dot { width: 8px; height: 8px; border: 1.5px solid currentColor; border-radius: 50%; flex-shrink: 0; }
.tuner-mic[aria-pressed=true] .tuner-mic-dot, .tuner-mic[aria-busy=true] .tuner-mic-dot { background: #ff813e; border-color: #ff813e; }
.tuner-status { min-height: 46px; margin: 16px 0 10px !important; font-size: 14px; color: var(--tuner-muted); }
.tuner-privacy { padding-top: 14px; border-top: 1px solid var(--tuner-line); font-size: 13px; color: var(--tuner-muted); }
.tuner-no-js { margin-top: 12px !important; font-size: 14px; }

.tuner-more { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px; margin-top: 24px; }
.tuner-next { padding: 36px; background: #e8f4f4; }
.good-company .tuner-next h2, .good-company .tuner-piano h2 { font-size: clamp(28px, 3vw, 38px); letter-spacing: -.04em; margin: 0 0 12px; }
.tuner-next > p:not(.tuner-kicker) { max-width: 520px; font-size: 16px; }
.tuner-next .gc-button { margin-top: 24px; }
.tuner-piano { padding: 36px; border: 1px solid var(--tuner-line); }
.tuner-piano p { font-size: 15px; color: var(--tuner-muted); }
.tuner-scope { margin-top: 26px !important; font-size: 13px; color: var(--tuner-muted); }
.tuner-scope a { color: inherit; text-underline-offset: 3px; }

@media (max-width: 900px) {
  .tuner-workspace { grid-template-columns: minmax(0, 1fr); }
  .tuner-instrument { border-right: 0; border-bottom: 1px solid var(--tuner-line); }
  .tuner-more { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 730px) {
  .tuner-page { padding: 0 6% 56px; }
  /* On a phone the tool comes first: Octave waits beside the title, small. */
  .tuner-hero { display: block; position: relative; padding: 24px 0 28px; }
  .tuner-hero-art { position: absolute; top: 18px; right: -8px; width: 120px; max-width: none; }
  .tuner-hero .tuner-kicker, .good-company .tuner-hero h1 { padding-right: 112px; }
  .tuner-lead { font-size: 16px; }
  .tuner-instrument, .tuner-listen, .tuner-next, .tuner-piano { padding: 24px 20px; }
  .tuner-strings { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
  .tuner-string { flex-direction: column; gap: 10px; min-height: 104px; padding: 10px 0; }
  .tuner-string-number { text-align: center; }
  .tuner-string-line { flex: none; width: var(--string-width); height: 30px; background: repeating-linear-gradient(5deg, #8d8a84 0 1px, #c9c6bf 1px 3px); }
  .tuner-string strong { min-width: 0; text-align: center; font-size: 20px; }
  .tuner-string[aria-pressed=true] { box-shadow: 3px 3px 0 var(--tuner-ink); }
  .tuner-note > strong { font-size: 72px; }
  .tuner-button { padding: 12px 8px; font-size: 14px; }
}
@media (max-width: 480px) {
  .good-company .tuner-hero h1 { font-size: 40px; }
  .tuner-hero-art { width: 100px; }
  .tuner-hero .tuner-kicker, .good-company .tuner-hero h1 { padding-right: 92px; }
  /* Each button on one line, full width, easy to reach with a thumb. */
  .tuner-actions { grid-template-columns: minmax(0, 1fr); }
  .tuner-button { padding: 12px 16px; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .tuner-page * { transition: none; } }
