/* Pages of the public site beyond the home: legal texts, sign-up and errors.
   They reuse the Good Company tokens and type from landing_playground.css. */

/* Legal notice and privacy */
.gc-legal { max-width: 1320px; margin: auto; padding: 56px 5% 72px; display: grid; gap: 8px; }
.gc-legal-head { border-bottom: 1px solid var(--gc-ink); padding-bottom: 34px; margin-bottom: 18px; display: grid; gap: 18px; max-width: 820px; }
.good-company .gc-legal-head h1 { font-size: clamp(42px, 5vw, 68px); }
.gc-legal-head > p { font-size: 18px; max-width: 640px; }
.gc-legal-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 12px 6%; padding: 24px 0; border-bottom: 1px solid var(--gc-line); max-width: 1100px; }
.good-company .gc-legal-section h2 { font-size: 22px; letter-spacing: -.02em; line-height: 1.3; }
.gc-legal-section p { font-size: 16px; max-width: 640px; grid-column: 2; }
.gc-legal-section p + p { margin-top: -2px; }
.gc-legal-section a { text-underline-offset: 4px; }
.gc-small { font-size: 14px; color: #606162; }

@media (max-width: 720px) {
  .gc-legal { padding-top: 36px; }
  .gc-legal-section { grid-template-columns: minmax(0, 1fr); }
  .gc-legal-section p { grid-column: 1; }
}

/* Sign-up form, on the home page and on /notify */
.gc-notify-form { display: grid; gap: 10px; margin-top: 26px; max-width: 520px; }
.gc-notify-label { font-size: 14px; font-weight: 700; }
.gc-notify-row { display: flex; flex-wrap: wrap; gap: 10px; }
.gc-notify-input { flex: 1 1 240px; min-width: 0; min-height: 52px; padding: 12px 16px; border: 1px solid var(--gc-ink); border-radius: 3px; background: #fff; color: var(--gc-ink); font: 400 17px/1.4 'Manrope', sans-serif; }
.gc-notify-input::placeholder { color: #8a8b8c; }
.gc-notify-input:focus-visible { outline: 3px solid #2453c6; outline-offset: 2px; }
.gc-notify-input[aria-invalid="true"] { border-color: #b3261e; }
.gc-notify-form .gc-button { margin-top: 0; cursor: pointer; }
.gc-notify-error { color: #b3261e; font-size: 15px; }
.gc-notify-form .gc-small { margin-top: 4px; }
.gc-notify-form .gc-small a { color: inherit; text-underline-offset: 4px; }
.gc-notify-check:not(.is-shown) { margin-top: -10px; }
.gc-notify-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.gc-notify-home { border-top: 1px solid var(--gc-ink); padding-top: 56px; }

/* The "Be the first to play" page */
.gc-notify-hero { max-width: 1320px; margin: auto; padding: 56px 5% 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6%; align-items: center; }
.good-company .gc-notify-hero h1 { font-size: clamp(48px, 5.6vw, 80px); letter-spacing: -.045em; }
.gc-notify-copy > p { margin-top: 24px; font-size: 18px; max-width: 480px; }
.gc-notify-follow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }
.gc-notify-art img { width: 100%; max-width: 560px; margin-inline: auto; }

@media (max-width: 820px) {
  .gc-notify-hero { grid-template-columns: minmax(0, 1fr); padding-top: 32px; }
  .gc-notify-art { order: -1; }
  .gc-notify-art img { max-width: 320px; }
}
@media (max-width: 600px) {
  /* On a phone the form comes first; Tempo follows it. */
  .gc-notify-hero { padding-top: 24px; gap: 32px; }
  .gc-notify-art { order: 1; }
  .gc-notify-art img { max-width: 240px; }
}

/* Error pages: a way back and, on 404, a tune to learn */
.gc-error-hero { max-width: 1320px; margin: auto; padding: 48px 5% 40px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 6%; align-items: center; }
.gc-error-code { font: 500 14px/1 'Manrope', sans-serif; letter-spacing: .22em; color: #606162; margin-bottom: 18px; }
.good-company .gc-error-hero h1 { font-size: clamp(44px, 5.4vw, 76px); letter-spacing: -.045em; }
.gc-error-copy > p:not(.gc-error-code) { margin-top: 22px; font-size: 18px; max-width: 520px; }
.gc-error-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }
.gc-error-art img { width: 100%; max-width: 460px; margin-inline: auto; }
.gc-error-tune { max-width: 1320px; margin: auto; padding: 40px 5% 72px; border-top: 1px solid var(--gc-ink); display: grid; gap: 22px; }
.gc-error-tune .gc-piano-demo { justify-self: center; width: 100%; max-width: 720px; padding-top: 0; }
.gc-error-tune .gc-piano-demo .lp-keyboard { height: 200px; }
.gc-error-tune .lp-demo-status { text-align: center; }
.gc-error-tune .lp-keyboard button.lp-white-key.is-next { background: #cfe0f0; box-shadow: inset 0 -8px #385f87; }
.gc-error-tune .lp-keyboard button.lp-white-key.is-next.is-playing { background: #f78336; }

/* A tune to learn (shared/_tune_player): listen buttons, a little score with
   one line per phrase and a bar line between bars, then the progress. Centred
   above the keyboard. The note that sounds is orange, like its key; the next
   note to play is blue, like its key. */
.gc-tune-player { justify-self: center; width: 100%; max-width: 820px; display: grid; justify-items: center; gap: 18px; text-align: center; }
.gc-tune-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.gc-tune-controls[hidden] { display: none; }
.gc-tune-button { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 18px; border: 1px solid var(--gc-ink); border-radius: 3px; background: #fff; color: var(--gc-ink); font: 500 15px/1.2 'Manrope', sans-serif; cursor: pointer; transition: background-color .15s, color .15s; }
.gc-tune-button:hover { background: #f1f1ef; }
.gc-tune-button:focus-visible { outline: 3px solid #2453c6; outline-offset: 3px; }
.gc-tune-button.is-on, .gc-tune-button[aria-pressed=true] { background: var(--gc-ink); color: #fff; }
.gc-tune-icon { width: 16px; height: 16px; flex-shrink: 0; fill: currentColor; }
.gc-tune-icon--stop, .gc-tune-button.is-on .gc-tune-icon--play { display: none; }
.gc-tune-button.is-on .gc-tune-icon--stop { display: block; }
/* One grid for the whole score, four bars a line: bar lines align from one
   phrase to the next. A bar line closes every bar. */
.gc-tune-score { display: grid; grid-template-columns: repeat(4, auto); justify-content: center; row-gap: 8px; }
.gc-tune-steps { display: contents; list-style: none; }
.gc-tune-steps > li { display: flex; justify-content: center; gap: 5px; padding: 0 9px; border-right: 1px solid rgba(23, 24, 25, .45); }
.gc-tune-steps > li:first-child { border-left: 1px solid rgba(23, 24, 25, .45); }
.gc-tune-steps span { min-width: 36px; padding: 6px 7px; border: 1px solid var(--gc-line); border-radius: 3px; background: #fff; text-align: center; font-size: 14px; line-height: 1.4; color: #606162; transition: background-color .12s, border-color .12s; }
.gc-tune-steps span.is-done { background: #edf3f8; border-color: #edf3f8; color: #244766; }
.gc-tune-steps span.is-current { border-color: #385f87; color: var(--gc-ink); font-weight: 700; box-shadow: inset 0 -3px #385f87; }
.gc-tune-steps span.is-sounding { background: #f78336; border-color: #f78336; color: var(--gc-ink); font-weight: 700; }
/* On the home page the score stays folded under one line: 62 notes are a lot to
   read at once, and the keyboard already lights the next key. */
.gc-tune-sheet { text-align: center; }
.gc-tune-sheet > summary { display: inline-flex; align-items: center; gap: 8px; padding: 6px 2px; list-style: none; font: 500 15px/1.4 'Manrope', sans-serif; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; }
.gc-tune-sheet > summary::-webkit-details-marker { display: none; }
.gc-tune-sheet > summary::after { content: '+'; display: inline-block; min-width: 1ch; font-size: 19px; line-height: 1; }
.gc-tune-sheet[open] > summary::after { content: '−'; }
.gc-tune-sheet > summary:focus-visible { outline: 3px solid #2453c6; outline-offset: 3px; }
.gc-tune-sheet[open] > .gc-tune-score { margin-top: 12px; text-align: left; }
/* On phones only the keyboard stays: the score goes entirely, the next key still lights up. */
@media (max-width: 900px) { .gc-tune-sheet { display: none; } }
.gc-tune-progress { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 20px; }
.gc-tune-status { font-size: 16px; min-height: 1.6em; }
.gc-tune-restart { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.gc-tune-restart[hidden] { display: none; }
/* Narrower screens: two bars a line. */
@media (max-width: 820px) {
  .gc-tune-score { grid-template-columns: repeat(2, auto); }
  .gc-tune-steps > li:nth-child(3) { border-left: 1px solid rgba(23, 24, 25, .45); }
}
@media (max-width: 600px) {
  .gc-tune-steps > li { gap: 3px; padding: 0 5px; }
  .gc-tune-steps span { min-width: 27px; padding: 5px 2px; font-size: 13px; }
}

@media (max-width: 820px) {
  .gc-error-hero { grid-template-columns: minmax(0, 1fr); padding-top: 28px; }
  .gc-error-art { order: -1; }
  .gc-error-art img { max-width: 260px; }
}

/* Hero details: each name underlined in its character's colour, and a way into the story. */
.gc-name { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }
.gc-name--pip { text-decoration-color: var(--gc-pip); }
.gc-name--tempo { text-decoration-color: var(--gc-tempo); }
.gc-name--octave { text-decoration-color: var(--gc-octave); }
.gc-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.gc-hero-meet span { display: inline-block; margin-left: 4px; transition: transform .2s; }
.gc-hero-meet:hover span { transform: translateY(3px); }
@media (prefers-reduced-motion: reduce) { .gc-hero-meet span { transition: none; } }
