/* Charthaus landing page. Same type and colours as the app: Barlow Condensed for chords and headings, Barlow for text. */
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url(/guide/fonts/barlow-400.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url(/guide/fonts/barlow-500.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url(/guide/fonts/barlow-condensed-700.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
/* ♭ ♮ ♯ in chords: Barlow has none, so they'd come from any font on the device. */
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url(/guide/fonts/chord-accidentals.woff2) format('woff2'); unicode-range: U+266D-266F; }
@font-face { font-family: 'Barlow'; font-weight: 400; font-display: swap; src: url(/guide/fonts/chord-accidentals.woff2) format('woff2'); unicode-range: U+266D-266F; }
@font-face { font-family: 'Barlow'; font-weight: 500; font-display: swap; src: url(/guide/fonts/chord-accidentals.woff2) format('woff2'); unicode-range: U+266D-266F; }

:root {
  color-scheme: light dark;
  /* Rehearsal room (light) and stage (dark). */
  --paper: #e9ecf1;
  --paper-2: #f6f7fa;
  --ink: #10141c;
  --ink-soft: #4d566a;
  --rule: #c3cad6;
  --cue: #3550d4;
  --cue-on: #ffffff;
  --stage: #10141c;
  --stage-2: #161b25;
  --stage-text: #e9ecf2;
  --stage-soft: #a7b0c2;
  --stage-rule: #2a3242;
  --stage-cue: #7c95ff;
  --focus: #3550d4;
  --wrap: 72rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161b25;
    --paper-2: #1b2130;
    --ink: #e9ecf2;
    --ink-soft: #a7b0c2;
    --rule: #323b4d;
    --cue: #7c95ff;
    --cue-on: #10141c;
    --stage: #0b0e14;
    --stage-2: #12161f;
    --focus: #7c95ff;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.6 'Barlow', system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -3rem; padding: 0.5rem 0.9rem; background: var(--cue); color: var(--cue-on); border-radius: 0.5rem; z-index: 10; }
.skip:focus { top: 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 46rem; }

h1, h2 { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 700; letter-spacing: -0.01em; margin: 0; }
h1 { font-size: clamp(3.2rem, 9vw, 7.25rem); line-height: 0.92; }
.nowrap { white-space: nowrap; }
@media (min-width: 40rem) { h1 .nowrap { display: block; } }
h2 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1; margin-bottom: 1.25rem; max-width: 16ch; }
p { margin: 0 0 1rem; max-width: 62ch; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0 1.4rem; border-radius: 0.75rem; background: var(--cue); color: var(--cue-on); font-weight: 500; text-decoration: none; transition: transform 120ms ease, filter 120ms ease; }
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 2.5rem; padding: 0 1rem; border-radius: 0.6rem; }
.link { font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 2rem; }

/* Header */
.bar { max-width: var(--wrap); margin: 0 auto; padding: 1.1rem var(--pad); display: flex; align-items: center; gap: 1rem; }
.wordmark { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; font: 700 1.6rem/1 'Barlow Condensed', sans-serif; }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 0.4rem 1.4rem; }
.bar nav a:not(.btn) { text-decoration: none; color: var(--ink-soft); font-weight: 500; }
.bar nav a:not(.btn):hover { color: var(--ink); }
@media (max-width: 34rem) { .bar nav a[href='/guide/'] { display: none; } }
@media (max-width: 26rem) { .bar nav a[href='/pricing'] { display: none; } }
.bar nav a[aria-current='page'] { color: var(--ink); }

/* Hero */
.hero { padding: clamp(2.5rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem); }
.lede { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--ink-soft); margin-top: 1.5rem; max-width: 52ch; }

/* The live chart */
.demo { margin-top: clamp(3rem, 7vw, 5rem); }
.demo-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.demo-title { margin: 0; display: flex; align-items: baseline; gap: 1rem; }
.demo-song { font: 700 1.6rem/1 'Barlow Condensed', sans-serif; }
.demo-tempo { color: var(--ink-soft); font-size: 1rem; }
.keys { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.keys-label { color: var(--ink-soft); font-size: 1rem; margin-right: 0.35rem; }
.keys button { min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.6rem; border: 1px solid var(--rule); border-radius: 0.6rem; background: var(--paper-2); color: var(--ink); font: 700 1.25rem/1 'Barlow Condensed', sans-serif; cursor: pointer; transition: background 120ms ease, border-color 120ms ease; }
.keys button:hover { border-color: var(--cue); }
.keys button[aria-pressed='true'] { background: var(--cue); border-color: var(--cue); color: var(--cue-on); }

.chart { position: relative; padding-top: 2.1rem; }
.mark { position: absolute; top: 0; left: 0; min-width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 0.3rem; font: 700 1rem/1 'Barlow Condensed', sans-serif; }
.row { display: grid; grid-template-columns: repeat(4, 1fr); }
.row + .row { margin-top: clamp(1.25rem, 3vw, 2rem); }
.measure { border-left: 2px solid var(--ink); min-height: clamp(4.25rem, 10vw, 7rem); padding: 0.35rem clamp(0.5rem, 1.5vw, 1rem); display: flex; align-items: flex-start; gap: clamp(0.5rem, 3vw, 2.5rem); }
.measure-end { border-right: 2px solid var(--ink); }
.ch { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-weight: 700; font-size: clamp(1.9rem, 5.6vw, 4.4rem); line-height: 1; white-space: nowrap; transition: opacity 160ms ease, transform 160ms ease; }
.ch b { font-weight: 700; }
.ch sup { font-size: 0.5em; vertical-align: 0; position: relative; top: -0.8em; color: var(--cue); margin-left: 0.04em; }
.chart.moving .ch { opacity: 0; transform: translateY(-0.12em); }
@media (prefers-reduced-motion: reduce) { .ch { transition: none; } .chart.moving .ch { transform: none; } }
@media (max-width: 30rem) {
  .keys { gap: 0.25rem; }
  .keys-label { margin-right: 0.15rem; }
  .keys button { min-width: 2.5rem; min-height: 2.5rem; padding: 0 0.4rem; font-size: 1.1rem; }
}
@media (max-width: 34rem) {
  .row { grid-template-columns: repeat(2, 1fr); row-gap: 1rem; }
  .measure:nth-child(2n) { border-right: 2px solid var(--ink); }
}
.demo figcaption { margin-top: 1.4rem; color: var(--ink-soft); font-size: 1rem; }

/* Stage (always dark: it's the gig) */
.stage { background: var(--stage); color: var(--stage-text); padding: clamp(4rem, 9vw, 7rem) 0; }
.stage p, .stage li { color: var(--stage-soft); }
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 60rem) { .split { grid-template-columns: 5fr 7fr; } .split-text { grid-template-columns: 1fr 1fr; align-items: start; } }
ul.plain { list-style: none; padding: 0; margin: 1.5rem 0 0; }
ul.plain li { padding: 0.7rem 0; border-top: 1px solid var(--stage-rule); }
ul.plain li:last-child { border-bottom: 1px solid var(--stage-rule); }
.shot { margin: 0; }
.shot img { border-radius: 1rem; border: 1px solid var(--stage-rule); background: #10141c; }
.shot-tablet img { box-shadow: 0 2rem 4rem -2rem rgb(0 0 0 / 0.6); }

/* The three things: sync, chords or lead sheet, recordings on bars */
.features { padding: clamp(1rem, 3vw, 2rem) 0 clamp(3rem, 7vw, 5rem); }
.feature { display: grid; gap: clamp(1.75rem, 4vw, 4rem); align-items: center; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.feature + .feature { border-top: 1px solid var(--rule); }
@media (min-width: 56rem) {
  .feature { grid-template-columns: 5fr 7fr; }
  .feature-flip { grid-template-columns: 7fr 5fr; }
  .feature-flip .feature-copy { order: 2; }
}
.feature h2 { font-size: clamp(2.6rem, 6.5vw, 4.5rem); line-height: 0.95; }
.feature-copy p { margin: 1rem 0 0; max-width: 25rem; font-size: clamp(1.15rem, 2vw, 1.35rem); line-height: 1.5; color: var(--ink-soft); }
/* Pictures sit in the middle of their column, and of the screen on a phone. */
.feature-art { margin: 0; justify-self: center; }
.phone-art img { width: min(17rem, 72vw); border-radius: 1.6rem; border: 1px solid var(--stage-rule); background: #10141c; box-shadow: 0 2rem 3.5rem -1.5rem rgb(16 20 28 / 0.45); }
.rec-art { position: relative; width: min(100%, 34rem); padding-bottom: 4%; }
.rec-art .art-phone { width: 56%; border-radius: 1.6rem; border: 1px solid var(--stage-rule); background: #10141c; box-shadow: 0 2rem 3.5rem -1.5rem rgb(16 20 28 / 0.45); }
.rec-art .art-detail { position: absolute; right: 0; top: 46%; width: 72%; border-radius: 0.9rem; border: 1px solid var(--stage-rule); background: #10141c; box-shadow: 0 1.5rem 3rem -1rem rgb(16 20 28 / 0.6); }
@media (max-width: 55.99rem) {
  /* On a phone the recording picture is centred: the close-up sits across the middle of the screen. */
  .rec-art .art-phone { width: min(17rem, 72vw); margin: 0 auto; }
  .rec-art .art-detail { right: auto; left: 50%; width: 92%; transform: translateX(-50%); }
}
.devices-art { position: relative; width: min(100%, 40rem); padding-bottom: 8%; }
.devices-art .art-tablet { width: 86%; border-radius: 1rem; border: 1px solid var(--stage-rule); background: #10141c; box-shadow: 0 2rem 4rem -2rem rgb(16 20 28 / 0.5); }
.devices-art .art-phone { position: absolute; right: 0; bottom: 0; width: 28%; border-radius: 1.1rem; border: 1px solid var(--stage-rule); background: #10141c; box-shadow: 0 1.5rem 3rem -1rem rgb(16 20 28 / 0.55); }

/* Chords or lead sheet: the same switch as in the app */
.view-switch { display: inline-flex; gap: 2px; margin-top: 1.75rem; padding: 3px; border: 1.5px solid var(--cue); border-radius: 999px; }
.view-switch button { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem; padding: 0 1.1rem; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: 500 1rem/1 'Barlow', sans-serif; cursor: pointer; }
.view-switch button[aria-pressed='true'] { background: var(--cue); color: var(--cue-on); }
.vs-chord { font: 700 1.25rem/1 'Barlow Condensed', sans-serif; }
.vs-chord sup { font-size: 0.6em; }
.view-art { display: grid; }
.view-art img { grid-area: 1 / 1; transition: opacity 220ms ease; }
.view-art[data-view='lead'] .view-chords,
.view-art[data-view='chords'] .view-lead { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .view-art img { transition: none; } }

/* Stage */
.stage .shot { justify-self: center; }

/* FAQ */
.faq { padding: 0 0 clamp(4rem, 9vw, 6rem); }
details { border-top: 1px solid var(--rule); }
details:last-of-type { border-bottom: 1px solid var(--rule); }
summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; font-weight: 500; font-size: 1.2rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font: 700 1.6rem/1 'Barlow Condensed', sans-serif; color: var(--ink-soft); }
details[open] summary::after { content: '–'; }
details p { color: var(--ink-soft); padding-bottom: 1rem; }
.more-link { margin-top: 1.5rem; }

/* Closing: ends like a tune, on a final barline */
.end { background: var(--stage); color: var(--stage-text); padding: clamp(4rem, 9vw, 6.5rem) 0 0; }
.end .btn { background: var(--stage-cue); color: #10141c; }
.end .link { color: var(--stage-text); }
.final-bar { max-width: var(--wrap); margin: clamp(3rem, 7vw, 5rem) auto 0; padding: 0 var(--pad); height: 4.5rem; position: relative; }
.final-bar::before { content: ''; position: absolute; left: var(--pad); right: calc(var(--pad) + 14px); top: 0; height: 4.5rem; border-right: 2px solid var(--stage-text); border-top: 1px solid var(--stage-rule); }
.final-bar::after { content: ''; position: absolute; right: var(--pad); top: 0; width: 8px; height: 4.5rem; background: var(--stage-text); }

.foot { background: var(--stage); color: var(--stage-soft); padding: 2rem 0 3rem; font-size: 1rem; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.75rem 2rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.foot a { color: var(--stage-soft); text-decoration: none; }
.foot a:hover { color: var(--stage-text); }
.wordmark-small { font: 700 1.3rem/1 'Barlow Condensed', sans-serif; color: var(--stage-text); margin-right: 0.5rem; }
.muted { color: var(--stage-soft); }
.small { font-size: 0.875rem; flex-basis: 100%; margin: 0; }

/* Plans: three bars of a chart row, the last one closed by a barline */
.plans-section { padding: clamp(4rem, 9vw, 6.5rem) 0; }
.plans-on-landing { border-top: 1px solid var(--rule); }
.plans-lede { color: var(--ink-soft); }
.plans { display: grid; margin-top: 2.5rem; }
@media (min-width: 56rem) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { border-left: 2px solid var(--ink); padding: 0.25rem clamp(1rem, 2.5vw, 2rem) 1.5rem; display: flex; flex-direction: column; }
@media (min-width: 56rem) { .plan:last-child { border-right: 2px solid var(--ink); } }
@media (max-width: 55.99rem) { .plan + .plan { margin-top: 2.5rem; } }
.plan h3 { font: 700 clamp(2.6rem, 5vw, 3.6rem)/1 'Barlow Condensed', sans-serif; margin: 0 0 0.75rem; }
.plan-price { margin: 0; display: flex; align-items: baseline; gap: 0.15rem; }
.plan-price .amount { font: 700 2.2rem/1 'Barlow Condensed', sans-serif; }
.plan-pro .plan-price .amount { color: var(--cue); }
.plan-price .per { color: var(--ink-soft); }
.plan-alt { color: var(--ink-soft); font-size: 1rem; margin: 0.3rem 0 1rem; }
.plan-summary { font-weight: 500; margin-bottom: 0.75rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.plan li { padding: 0.45rem 0 0.45rem 1.4rem; position: relative; color: var(--ink-soft); line-height: 1.45; }
.plan li::before { content: ''; position: absolute; left: 0.1rem; top: 0.95rem; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--ink); }
.plan-cta { margin: auto 0 0; }
.plan-soon { display: inline-block; align-self: flex-start; padding: 0.45rem 0.9rem; border: 1.5px dashed var(--rule); border-radius: 0.6rem; color: var(--ink-soft); font-weight: 500; }
.plans-compact .plan ul { margin-bottom: 1rem; }
.plans-more { margin-top: 2rem; }
.plans-note { margin-top: 2rem; color: var(--ink-soft); font-size: 1rem; }

/* Pricing page */
.price-hero { padding: clamp(2.5rem, 7vw, 5rem) 0 0; }
.price-hero h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); max-width: 14ch; }
.notice { margin-top: 1.75rem; padding: 1rem 1.25rem; border-radius: 0.75rem; background: var(--paper-2); border: 1px solid var(--rule); max-width: 60ch; }
.compare-section { padding: 0 0 clamp(4rem, 9vw, 6rem); }
.compare-wrap { overflow-x: auto; margin-top: 1.5rem; }
.compare { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: 1rem; }
.compare th, .compare td { text-align: left; padding: 0.8rem 0.75rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare thead th { font: 700 1.5rem/1 'Barlow Condensed', sans-serif; border-bottom: 2px solid var(--ink); }
.compare tbody th { font-weight: 400; color: var(--ink-soft); width: 40%; }
.compare td.no { color: var(--rule); }
.pricing-page .faq { padding-top: 0; }
.pricing-page .plans-section { padding-top: 2.5rem; }
