/* Fretwork's public pages (public/pages/*.html, served at /<name>): the free tools explained for search engines
   and for people arriving from a shared link. Same look as the app: dark, warm accent, Barlow Condensed headings. */
:root {
  --bg: #0a0a0e; --surface: #14141c; --surface2: #1b1b26; --border: rgba(255, 255, 255, .08); --border2: rgba(255, 255, 255, .14);
  --text: #f4f4f7; --muted: #a6a6b4; --faint: #75758a; --accent: #ff5a36; --accent2: #ff2d6f; --accent-soft: rgba(255, 90, 54, .14);
  --grad: linear-gradient(135deg, var(--accent), var(--accent2));
  --head: 'Barlow Condensed', Inter, system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font: 400 16.5px/1.65 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; overflow-x: hidden;
  background-image: radial-gradient(1100px 560px at 78% -120px, rgba(255, 90, 54, .16), transparent 62%); background-repeat: no-repeat; }
a { color: #ff8a6e; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
code { font: 500 .92em ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; background: rgba(10, 10, 14, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 800 25px/1 var(--head); letter-spacing: .01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand b { color: var(--accent); font-weight: 800; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 14.5px; font-weight: 500; padding: 7px 11px; border-radius: 9px; }
.nav a:hover, .nav a[aria-current] { color: var(--text); background: rgba(255, 255, 255, .05); text-decoration: none; }
.top .btn { padding: 9px 16px; font-size: 14.5px; }
@media (max-width: 920px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 15.5px/1.2 Inter, sans-serif; color: var(--text); background: var(--surface2);
  border: 1px solid var(--border2); border-radius: 12px; padding: 12px 20px; transition: transform .12s ease, filter .12s ease; white-space: nowrap; }
.btn:hover { text-decoration: none; filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 26px rgba(255, 60, 70, .28); }
.btn.big { font-size: 17px; padding: 15px 26px; border-radius: 14px; }

/* hero */
.hero { padding: 72px 0 40px; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--accent); }
h1 { font: 800 clamp(44px, 7vw, 78px)/.96 var(--head); letter-spacing: -.005em; margin: 14px 0 20px; max-width: 15ch; }
h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(17px, 2vw, 19.5px); color: #d4d4de; max-width: 62ch; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 30px; }
.cta .note { color: var(--muted); font-size: 14.5px; }
.cta .note::before { content: '✓'; color: #4ade80; font-weight: 700; margin-right: 7px; }

/* screenshot in a window frame */
.shot { margin: 18px 0 8px; border-radius: 18px; overflow: hidden; border: 1px solid var(--border2); background: var(--surface);
  box-shadow: 0 40px 100px rgba(0, 0, 0, .55), 0 0 0 7px rgba(255, 255, 255, .025); }
.shot .bar { display: flex; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: #111118; }
.shot .bar i { width: 11px; height: 11px; border-radius: 50%; background: #2c2c3a; }
.shot figcaption { padding: 12px 16px; color: var(--faint); font-size: 13.5px; border-top: 1px solid var(--border); }

/* sections */
section.block { padding: 64px 0 8px; }
h2 { font: 800 clamp(32px, 4.4vw, 46px)/1.02 var(--head); margin-bottom: 12px; }
.sub { color: var(--muted); max-width: 64ch; margin-bottom: 30px; }
h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 6px; line-height: 1.35; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px 22px 20px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: #ff9c82; font-size: 19px; margin-bottom: 14px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; list-style: none; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 22px; color: var(--muted); font-size: 15.5px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; font: 800 19px/1 var(--head); margin-bottom: 14px; }
.steps li b { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }
.prose { max-width: 70ch; color: #cfcfda; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 14px; }
.prose ul { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose b { color: var(--text); }

/* chord chart */
.chords { width: 100%; border-collapse: collapse; font-size: 15px; }
.chords th, .chords td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.chords th { color: var(--faint); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.chords td:first-child { font: 800 20px/1 var(--head); }
.chords td code { font-size: 14.5px; letter-spacing: .12em; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 16.5px; padding: 17px 30px 17px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 13px; font-size: 24px; color: var(--accent); transition: transform .15s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 18px; font-size: 15.5px; }

/* other tools */
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.tool { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; color: var(--text); transition: border-color .15s ease, transform .15s ease; }
.tool:hover { border-color: rgba(255, 90, 54, .45); transform: translateY(-2px); text-decoration: none; }
.tool b { display: block; font-size: 16.5px; margin-bottom: 3px; }
.tool span { color: var(--muted); font-size: 14.5px; line-height: 1.5; display: block; }
.tool em { display: inline-block; margin-top: 10px; font-style: normal; font-weight: 600; font-size: 14px; color: #ff8a6e; }

/* closing call to action */
.final { margin: 72px 0 0; padding: 48px 28px; border-radius: 22px; text-align: center; border: 1px solid rgba(255, 90, 54, .28);
  background: radial-gradient(600px 260px at 50% 0, rgba(255, 90, 54, .2), transparent 70%), var(--surface); }
.final h2 { margin-bottom: 10px; }
.final p { color: var(--muted); margin: 0 auto 24px; max-width: 54ch; }

footer { margin-top: 72px; padding: 30px 0 40px; border-top: 1px solid var(--border); color: var(--faint); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
footer a { color: var(--muted); }
footer .sp { margin-left: auto; }
@media (max-width: 600px) { .hero { padding-top: 44px; } section.block { padding-top: 48px; } footer .sp { margin-left: 0; } .cta .btn { width: 100%; } }

/* guided course page (bernth-guitar-course) */
.credit-box { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; margin-top: 8px; padding: 26px 28px; border-radius: 18px; background: var(--surface); border: 1px solid rgba(255, 90, 54, .3); }
.credit-box > div:first-child { flex: 1 1 460px; }
.credit-box h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 6px 0 10px; }
.credit-box p { color: var(--muted); }
.credit-box p + p { margin-top: 10px; }
.credit-btns { display: flex; flex-direction: column; gap: 10px; }
.mod { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 20px 12px; margin-bottom: 14px; }
.mod-head p { color: var(--muted); font-size: 15px; margin: 4px 0 10px; }
.mod-head h3 { font-size: 21px; margin: 2px 0 0; }
.lessons { list-style: none; display: grid; gap: 4px; }
.lessons a { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 12px; color: var(--text); }
.lessons a:hover { background: var(--surface2); text-decoration: none; }
.lessons img, .lessons .toolthumb { width: 112px; height: 63px; flex: none; border-radius: 8px; object-fit: cover; background: #222; }
.lessons .toolthumb { display: grid; place-items: center; background: var(--accent-soft); color: #ff9c82; font-size: 20px; }
.lessons b { display: block; font-size: 15px; font-weight: 600; line-height: 1.35; }
.lessons small { color: var(--faint); font-size: 13px; }
@media (max-width: 600px) { .lessons img, .lessons .toolthumb { width: 84px; height: 47px; } .credit-box { padding: 20px 16px; } .credit-btns { width: 100%; } }
