/* Free tool pages: chord chart, chord pages, chord finder, tuners. Builds on /style.css. */
:root{--seafoam:#4DC190;--seafoam-deep:#2E8B6A}
.toolnav{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;padding:12px 16px;border-bottom:1px solid var(--stroke);background:#07070a}
.toolnav a{color:var(--dim);font-weight:700;font-size:13px;padding:7px 12px;border-radius:999px;border:1px solid var(--stroke)}
.toolnav a:hover{color:var(--text);border-color:#3a3a43}
.toolnav a.on{color:#000;background:var(--seafoam);border-color:var(--seafoam)}
.page{max-width:1040px;margin:0 auto;padding:28px 20px 40px}
.crumbs{font-size:13px;font-weight:600;color:var(--faint);margin-bottom:18px}
.crumbs a{color:var(--dim)}
.crumbs a:hover{color:var(--text)}
.page h1{font-size:clamp(30px,4.6vw,48px);line-height:1.08;margin-bottom:10px}
.page h2{font-size:clamp(20px,2.4vw,26px);text-align:left;margin:44px 0 14px}
.page h3{font-size:16px;margin-bottom:6px}
.page p{color:#d2d2d8}
.lede{font-size:17px;color:#d9d9de;max-width:640px}
.aka{color:var(--dim);font-weight:600;font-size:14px;margin:-4px 0 12px}
.card{background:var(--surface);border:1px solid var(--stroke);border-radius:20px}
/* Cinzel has no lowercase, so "Am7" would read "AM7". Chord and note names always use the sans. */
.sym,.chord-card .big,.shape .name,.rootcells b,.readout .big,.t-note{font-family:var(--sans)!important;font-weight:900;letter-spacing:-.02em;text-transform:none}

/* chord diagrams */
.dg{display:block;overflow:visible;font-family:var(--sans)}
.dg-grid{stroke:#7d7d86;stroke-width:1.4}
.dg-nut{fill:#F5F5F7}
.dg-capo{fill:#F6A20B}
.dg-dot{fill:var(--seafoam)}
.dg-open{fill:none;stroke:#F5F5F7;stroke-width:1.8}
.dg-mute{stroke:#8E8E96;stroke-width:1.8;stroke-linecap:round;fill:none}
.dg-fr{fill:#8E8E96;font-size:11.5px;font-weight:700}
.dg-note{fill:#F5F5F7;font-size:11.5px;font-weight:800}

/* chord page */
.chord-top{display:grid;grid-template-columns:300px 1fr;gap:32px;align-items:start}
.chord-card{padding:22px 22px 18px;text-align:center;position:sticky;top:84px}
.chord-card .big{font-family:var(--display);font-weight:900;font-size:58px;line-height:1}
.chord-card .sub{color:var(--dim);font-weight:600;font-size:14px;margin:6px 0 14px}
.chord-card .dg{width:210px;height:auto;margin:0 auto}
.btn{display:inline-flex;align-items:center;gap:8px;font:700 15px var(--sans);color:#000;background:var(--seafoam);border:0;border-radius:999px;padding:11px 20px;cursor:pointer}
.btn:hover{filter:brightness(1.08)}
.btn.ghost{background:transparent;color:var(--text);border:1px solid var(--stroke)}
.btn.ghost:hover{border-color:var(--seafoam)}
.btn.small{font-size:13px;padding:7px 13px}
.btn svg{width:14px;height:14px;fill:currentColor}
.btn.ringing{box-shadow:0 0 0 6px rgba(77,193,144,.18)}
.chord-card .btn{margin-top:14px}
.howto{margin:8px 0 0 20px;color:#d2d2d8;font-size:16px}
.howto li{margin:6px 0}
.notes{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.notes span{background:var(--raised);border:1px solid var(--stroke);border-radius:12px;padding:8px 12px;font-weight:700;font-size:14px}
.notes span small{display:block;color:var(--dim);font-weight:600;font-size:11.5px}
.feel{margin-top:16px;padding:16px 18px;border-left:3px solid var(--seafoam);background:var(--surface);border-radius:0 14px 14px 0}
.alsonames{margin-top:12px;font-size:14.5px;color:var(--dim)}
.shapes{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.shape{padding:14px 12px 12px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}
.shape .dg{width:116px;height:auto}
.shape .where{font-size:12.5px;color:var(--dim);font-weight:600;min-height:18px}
.shape .row{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}
.shape .name{font-family:var(--display);font-weight:900;font-size:22px;line-height:1;color:var(--text)}
a.shape{color:var(--text)}
a.shape:hover{border-color:#3a3a43}
.pills{display:flex;flex-wrap:wrap;gap:8px}
.pills a{color:var(--text);font-weight:700;font-size:14px;padding:8px 13px;border-radius:999px;border:1px solid var(--stroke);background:var(--surface)}
.pills a:hover{border-color:var(--seafoam)}
.pills a.on{background:var(--seafoam);color:#000;border-color:var(--seafoam)}
.keynote{color:var(--dim);font-size:15px;margin:-6px 0 14px}

/* app call to action */
.cta{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:26px 28px;margin-top:48px;background:linear-gradient(135deg,rgba(77,193,144,.13),rgba(229,2,120,.08)) var(--surface)}
.cta h2{margin:0 0 8px;font-size:22px}
.cta p{font-size:15px;max-width:600px}
.cta .eyebrow{margin-bottom:6px;color:var(--seafoam)}
.cta .store{flex:0 0 auto}
.cta-actions{display:flex;flex-direction:column;gap:10px;align-items:stretch;flex:0 0 auto}
.cta-actions .learn{text-align:center;font-weight:700;font-size:14px}

/* chord chart hub */
.chart-tools{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0 6px}
.readme{display:grid;grid-template-columns:150px 1fr;gap:22px;align-items:center;padding:20px 22px;margin-top:22px}
.readme .dg{width:140px;height:auto}
.readme ul{margin-left:18px;color:#d2d2d8;font-size:15px}
.readme li{margin:4px 0}
.rootrow{margin-top:18px;padding:18px}
.rootrow h2{margin:0 0 12px;font-size:22px}
.rootrow h2 a{color:var(--text)}
.rootcells{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}
.rootcells a{display:flex;flex-direction:column;align-items:center;gap:6px;padding:10px 6px;border-radius:14px;color:var(--text)}
.rootcells a:hover{background:var(--raised)}
.rootcells .dg{width:92px;height:auto}
.rootcells b{font-family:var(--display);font-weight:900;font-size:18px}
.more{margin-top:12px;font-size:13.5px;color:var(--dim);line-height:1.9}
.more a{color:#c9c9cf;font-weight:700;margin-right:10px;white-space:nowrap}
.more a:hover{color:var(--seafoam)}

/* chord finder */
.finder{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px;align-items:start;margin-top:18px}
.neckcard2{padding:18px 18px 16px}
.controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin-bottom:12px}
.controls label{font-size:12px;font-weight:700;color:var(--dim);letter-spacing:.06em;text-transform:uppercase;display:flex;flex-direction:column;gap:4px}
select,.stepper{font:600 15px var(--sans);color:var(--text);background:var(--raised);border:1px solid var(--stroke);border-radius:10px;padding:8px 10px}
.stepper{display:inline-flex;align-items:center;gap:10px;padding:4px 6px}
.stepper button{width:30px;height:30px;border-radius:8px;border:1px solid var(--stroke);background:var(--surface);color:var(--text);font:700 18px var(--sans);cursor:pointer}
.stepper output{min-width:22px;text-align:center}
.neckwrap{display:flex;align-items:center;gap:8px}
.neckwrap .dg{width:100%;max-width:340px;height:auto;margin:0 auto;touch-action:manipulation}
.neckwrap .hit{fill:transparent;cursor:pointer}
.neckwrap .hit:hover{fill:rgba(255,255,255,.05)}
.scroll{display:flex;flex-direction:column;gap:8px}
.scroll button{width:40px;height:40px;border-radius:12px;border:1px solid var(--stroke);background:var(--raised);color:var(--text);font:700 16px var(--sans);cursor:pointer}
.scroll button:disabled{opacity:.3;cursor:default}
.readout{padding:22px}
.readout .big{font-family:var(--display);font-weight:900;font-size:clamp(48px,7vw,72px);line-height:1;min-height:1em;word-break:break-word}
.readout .sub{color:var(--dim);font-weight:600;font-size:15px;margin:8px 0 14px;min-height:22px}
.chips{display:flex;flex-wrap:wrap;gap:8px;min-height:34px}
.chips span{font-weight:800;font-size:14px;padding:6px 12px;border-radius:999px;background:var(--raised);border:1px solid var(--stroke)}
.chips .lbl{background:none;border:0;padding:6px 0;color:var(--dim);font-weight:700}
.actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.lookup{margin-top:18px;padding-top:16px;border-top:1px solid var(--stroke)}
.lookup .controls{margin:8px 0 0}
.seeall{display:block;margin-top:14px;font-weight:700}

/* tuner */
.tuner{max-width:560px;margin:18px auto 0;padding:24px 22px 22px;text-align:center}
.tuner .controls{justify-content:center}
.t-note{font-family:var(--display);font-weight:900;font-size:96px;line-height:1;margin-top:8px;min-height:96px}
.t-note sub{font-size:28px;color:var(--dim);vertical-align:baseline;margin-left:2px}
.t-read{color:var(--dim);font-weight:700;font-size:15px;min-height:22px;margin:6px 0 18px}
.t-read.in{color:var(--seafoam)}
.beam{position:relative;height:90px;margin:0 6px}
.beam .bar{position:absolute;left:0;right:0;top:56px;height:8px;border-radius:4px;background:#2a2a31;transform-origin:50% 50%;transition:transform .12s linear}
.beam .notch{position:absolute;left:50%;top:-8px;width:22px;height:24px;margin-left:-11px;border-radius:6px;background:rgba(77,193,144,.25);border:1px solid var(--seafoam)}
.beam .ball{position:absolute;top:-28px;left:50%;width:34px;height:34px;margin-left:-17px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff,#d9d9de 45%,#8e8e96);transition:left .12s linear,background .2s}
.beam.in .ball{background:radial-gradient(circle at 35% 30%,#d9fff0,var(--seafoam) 50%,var(--seafoam-deep))}
.beam .lab{position:absolute;top:72px;font-size:12px;font-weight:800;color:var(--faint);letter-spacing:.08em}
.beam .lab.l{left:0}.beam .lab.r{right:0}
.strings{display:flex;justify-content:center;gap:10px;margin:22px 0 6px;flex-wrap:wrap}
.strings button{min-width:54px;height:54px;border-radius:16px;border:1px solid var(--stroke);background:var(--raised);color:var(--text);font:800 18px var(--sans);cursor:pointer;position:relative}
.strings button.target{border-color:var(--seafoam)}
.strings button.done::after{content:"";position:absolute;top:6px;right:6px;width:8px;height:8px;border-radius:50%;background:var(--seafoam)}
.strings button small{display:block;font-size:10px;color:var(--dim);font-weight:700}
.t-hint{font-size:13px;color:var(--faint);margin-top:10px}
.t-start{margin-top:6px}
.t-err{color:#ff8a8a;font-weight:600;font-size:14px;margin-top:10px;min-height:20px}

/* text sections */
.prose{max-width:760px}
.prose p,.prose li{font-size:16px;color:#d2d2d8}
.prose ol,.prose ul{margin:8px 0 0 22px}
.prose li{margin:6px 0}
.page .faq{padding:0;max-width:760px;margin:0}
.toolfoot{margin-top:56px;padding-top:22px;border-top:1px solid var(--stroke);display:grid;grid-template-columns:repeat(3,1fr);gap:18px;font-size:14px}
.toolfoot h3{font-size:13px;font-family:var(--sans);font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--dim);margin-bottom:8px}
.toolfoot a{display:block;color:#c9c9cf;margin:4px 0}
.toolfoot a:hover{color:var(--seafoam)}

@media (max-width:900px){
  .chord-top,.finder{grid-template-columns:1fr}
  .chord-card{position:static;max-width:340px;margin:0 auto;width:100%}
  .cta{flex-direction:column;text-align:center;align-items:center}
  .toolfoot{grid-template-columns:1fr 1fr}
}
@media (max-width:560px){
  .page{padding:20px 16px 32px}
  .rootcells{grid-template-columns:repeat(3,1fr)}
  .rootcells .dg{width:80px}
  .readme{grid-template-columns:1fr;justify-items:center}
  .t-note{font-size:80px;min-height:80px}
  .toolfoot{grid-template-columns:1fr}
  .shapes{grid-template-columns:repeat(2,1fr)}
}

/* paper: the chart prints black on white, without the site chrome */
@media print{
  body{background:#fff;color:#000}
  .nav,.toolnav,.cta,.toolfoot,.foot,.chart-tools,.btn,.crumbs,.readme,.noprint{display:none!important}
  .page{padding:0;max-width:none}
  .page h1{font-size:22px;color:#000}
  .page p{color:#000}
  .card{background:#fff;border:0}
  .rootrow{padding:6px 0;margin:0;break-inside:avoid}
  .rootrow h2{font-size:14px;margin:0 0 2px}
  .rootrow h2 a,.rootcells a{color:#000}
  .rootcells{gap:2px}
  .rootcells a{padding:2px}
  .rootcells .dg{width:72px}
  .rootcells b{font-size:13px}
  .more{display:none}
  .dg-grid{stroke:#000;stroke-width:1}
  .dg-nut,.dg-dot{fill:#000}
  .dg-open{stroke:#000}
  .dg-mute{stroke:#000}
  .dg-fr,.dg-note{fill:#000}
}
