/* SingNest free tools. Single light theme, matching the brand and the main site. */
:root {
  --fog: #F5F6FA; --paper: #FFFFFF; --ink: #1C1A36; --ink2: #55536E; --line: #DADCE6; --grid: #ECEEF4;
  --lagoon: #0B7A75; --lagoon-d: #075954; --lagoon-soft: #DDF1EF;
  --sun: #FFB31F; --sun-soft: #FFF1D2; --lilac: #8C7AE6; --lilac-soft: #EEEBFC;
  --f-d: 'Gabarito', 'Segoe UI', system-ui, sans-serif;
  --f-b: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fog); color: var(--ink); font: 17px/1.6 var(--f-b); -webkit-font-smoothing: antialiased; }
a { color: var(--lagoon); }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)); }
header.top { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 8px; font: 800 1.35rem var(--f-d); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.top nav a { font-size: .9rem; font-weight: 600; color: var(--ink2); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
h1 { font: 800 clamp(2rem, 6vw, 2.8rem)/1.05 var(--f-d); letter-spacing: -0.02em; margin: 18px 0 10px; text-wrap: balance; }
h2 { font: 800 1.55rem/1.15 var(--f-d); letter-spacing: -0.015em; margin: 40px 0 10px; text-wrap: balance; }
h3 { font: 700 1.2rem/1.25 var(--f-d); margin: 0; }
p { margin: 0 0 14px; }
.lead { font-size: 1.12rem; color: var(--ink2); }
.small { font-size: .88rem; color: var(--ink2); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--lagoon); }
.crumbs { font-size: .85rem; color: var(--ink2); margin-top: 4px; }
.crumbs a { color: var(--ink2); }

.tool { background: var(--paper); border-radius: 26px; padding: 20px; margin: 22px 0 8px; display: grid; gap: 16px; box-shadow: 0 2px 18px rgba(28,26,54,.06); }
.tool .privacy { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--lagoon); background: var(--lagoon-soft); border-radius: 999px; padding: 6px 11px; justify-self: start; }
.btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 56px; padding: 0 22px;
  border: 0; border-radius: 999px; background: var(--lagoon); color: #fff; font: 700 1.08rem var(--f-b);
  cursor: pointer; text-decoration: none; transition: background .15s, transform .1s;
}
.btn:hover { background: var(--lagoon-d); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: var(--fog); color: var(--ink); }
.btn.ghost:hover { background: var(--grid); }
.btn.dark { background: var(--ink); }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.error { background: var(--lilac-soft); border-radius: 16px; padding: 14px; font-size: .95rem; }

.live { display: grid; justify-items: center; gap: 2px; background: var(--lagoon-soft); border-radius: 20px; padding: 18px 12px; text-align: center; }
.live b { font: 800 3.6rem/1 var(--f-d); letter-spacing: -0.02em; color: var(--lagoon-d); min-height: 3.6rem; }
.meter { height: 8px; border-radius: 99px; background: var(--grid); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--lagoon); transition: width .08s linear; }
.rc-step { display: grid; gap: 4px; }
.rc-step p { margin: 0; }

.result { display: grid; gap: 14px; }
.result .big { font: 800 2.2rem/1.05 var(--f-d); letter-spacing: -0.02em; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stats div { background: var(--fog); border-radius: 16px; padding: 12px 8px; text-align: center; display: grid; gap: 2px; }
.stats b { font: 800 1.35rem var(--f-d); }
.stats span { font-size: .78rem; color: var(--ink2); font-weight: 600; line-height: 1.25; }
.kbd { width: 100%; height: auto; display: block; }

.cta { background: var(--ink); color: #fff; border-radius: 22px; padding: 20px; display: grid; gap: 10px; }
.cta p { margin: 0; color: #D9D8E6; }
.cta b { font: 800 1.3rem/1.2 var(--f-d); color: #fff; }
.cta .btn { background: var(--sun); color: var(--ink); }
.cta .btn:hover { background: #ffc24d; }

article { padding-bottom: 10px; }
article ul, article ol { padding-left: 1.2em; margin: 0 0 14px; }
article li { margin-bottom: 6px; }
table { width: 100%; border-collapse: collapse; margin: 6px 0 18px; font-size: .95rem; background: var(--paper); border-radius: 16px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--grid); vertical-align: top; }
th { font-weight: 700; background: var(--lagoon-soft); color: var(--lagoon-d); }
tr:last-child td { border-bottom: 0; }
.tablewrap { overflow-x: auto; }
details { background: var(--paper); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; }
summary { font-weight: 700; cursor: pointer; }
details p { margin: 10px 0 0; color: var(--ink2); }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 10px 0 24px; }
.tools-grid a { display: grid; gap: 4px; background: var(--paper); border-radius: 18px; padding: 16px; text-decoration: none; color: var(--ink); border: 2px solid transparent; }
.tools-grid a:hover { border-color: var(--lagoon-soft); }
.tools-grid a b { font: 700 1.05rem var(--f-d); }
.tools-grid a span { font-size: .88rem; color: var(--ink2); line-height: 1.4; }
footer.site { border-top: 1px solid var(--line); margin-top: 30px; padding: 20px 0 max(30px, env(safe-area-inset-bottom, 0px)); font-size: .85rem; color: var(--ink2); display: flex; flex-wrap: wrap; gap: 8px 16px; }
footer.site a { color: var(--ink2); }

/* tuner */
.tuner-note { font: 800 5rem/1 var(--f-d); letter-spacing: -0.03em; color: var(--ink); }
.tuner-note small { font-size: 1.6rem; color: var(--ink2); margin-left: 2px; }
.cents { position: relative; height: 46px; border-radius: 14px; background: linear-gradient(90deg, var(--lilac-soft), var(--lagoon-soft) 40%, var(--lagoon-soft) 60%, var(--sun-soft)); overflow: hidden; }
.cents::before { content: ''; position: absolute; left: 50%; top: 6px; bottom: 6px; width: 2px; margin-left: -1px; background: var(--lagoon); opacity: .5; }
.cents i { position: absolute; top: 4px; bottom: 4px; width: 8px; margin-left: -4px; left: 50%; border-radius: 4px; background: var(--ink); transition: left .08s linear, background .15s; }
.cents i.ok { background: var(--lagoon); }
.cents-labels { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink2); font-weight: 600; margin-top: -8px; }
canvas.trace { width: 100%; height: 200px; display: block; background: var(--fog); border-radius: 16px; }
.refs { display: flex; flex-wrap: wrap; gap: 6px; }
.refs button { border: 0; background: var(--fog); border-radius: 999px; padding: 8px 12px; font: 600 .9rem var(--f-b); cursor: pointer; color: var(--ink); }
.refs button:hover { background: var(--grid); }

/* tone deaf test */
.dots { display: flex; gap: 6px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--grid); }
.dots i.on { background: var(--lagoon); }
.dots i.miss { background: var(--lilac); }
.dots i.cur { box-shadow: 0 0 0 3px var(--sun); }
