/* Bandwise EQ website. System fonts only: the site makes no third-party requests. */
:root {
  /* cool palette taken from the extension (blue-grey neutrals, icon blue) so screenshots sit naturally */
  --paper: #f3f5f8; --paper-2: #e8ecf2; --card: #ffffff;
  --ink: #171a20; --ink-2: #4a5260; --ink-3: #7a8392; --line: #d6dce5;
  --link: #1a56c9;
  color-scheme: light;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
/* Dark theme: follows the system unless the visitor picked a theme with the toggle
   (stored as data-theme on <html>). Same greys as the extension's dark display. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #14171c; --paper-2: #1b1f26; --card: #1f242c;
    --ink: #e6e8eb; --ink-2: #b4bac4; --ink-3: #8a919b; --line: #2c323b;
    --link: #8ab4f8;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #14171c; --paper-2: #1b1f26; --card: #1f242c;
  --ink: #e6e8eb; --ink-2: #b4bac4; --ink-3: #8a919b; --line: #2c323b;
  --link: #8ab4f8;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 17px/1.65 var(--sans); }
a { color: var(--link); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 680px; }

/* header */
.site-head { display: flex; align-items: center; gap: 10px; padding-block: 22px; }
.site-head img { width: 28px; height: 28px; }
.site-head .name { font: 700 19px var(--serif); color: var(--ink); text-decoration: none; }
.site-head nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; }
.site-head nav a { color: var(--ink-2); text-decoration: none; }
.site-head nav a:hover { color: var(--ink); text-decoration: underline; }
.site-head nav a.lang { display: grid; place-items: center; min-width: 34px; height: 34px; margin-left: 4px; padding: 0 7px; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 8px; font-size: 13px; font-weight: 600; letter-spacing: .4px; }
.site-head nav a.lang:hover { text-decoration: none; border-color: var(--ink-3); }
.theme-toggle {
  display: grid; place-items: center; width: 34px; height: 34px; margin-left: 4px; padding: 0;
  border: 1px solid var(--line); border-radius: 8px; background: none; color: var(--ink-2); cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-3); }
.theme-toggle:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; }
/* show the icon of the theme you would switch to */
.theme-toggle .sun { display: none; }
.theme-toggle.is-dark .sun { display: block; }
.theme-toggle.is-dark .moon { display: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: clamp(38px, 5.4vw, 58px); margin: 0 0 18px; }
h2 { font-size: clamp(28px, 3.4vw, 36px); margin: 0 0 14px; }
h3 { font-size: 21px; margin: 0 0 8px; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-block: 40px 72px; }
.hero p.lead { font-size: 20px; color: var(--ink-2); margin: 0 0 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.button {
  display: inline-block; padding: 11px 20px; border-radius: 8px; font-weight: 600; font-size: 16px;
  background: var(--ink); color: var(--paper); text-decoration: none;
}
.button.secondary { background: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink-3); }
.button.icon { display: inline-grid; place-items: center; padding: 0; width: 48px; height: 48px; }
.button.icon svg { width: 24px; height: 24px; }
.button:hover { opacity: .88; }
.button:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.small { font-size: 15px; color: var(--ink-3); margin-top: 18px; }

/* screenshots: always clickable to zoom */
.shot { display: block; width: fit-content; max-width: 100%; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: #202124;
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 18px 40px rgba(20,30,50,.18); }
.shot:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--ink-3); margin-top: 10px; }

/* "why I made it" note */
.note { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 56px; }
.note p { font-family: var(--serif); font-size: 20px; line-height: 1.6; margin: 0 0 16px; }
.note .sign { font-family: var(--sans); font-size: 15px; color: var(--ink-3); margin-top: 22px; }
.note .sign strong { color: var(--ink); }

/* demo video: a poster that turns into the YouTube player on click (site.js) */
.demo { padding-block: 8px 72px; }
.video { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #0f1218;
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 18px 40px rgba(20,30,50,.18); }
.video img, .video iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video .play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(10, 12, 16, .72); color: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.85);
  transition: transform .15s, background .15s; }
.video .play svg { width: 38px; height: 38px; margin-left: 4px; }
.video:hover .play { transform: scale(1.06); background: rgba(10, 12, 16, .85); }
.video:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 480px) { .video .play { width: 64px; height: 64px; margin: -32px 0 0 -32px; } .video .play svg { width: 30px; height: 30px; } }

/* tour */
.tour { padding-block: 72px 24px; }
.tour > .wrap > h2 { margin-bottom: 8px; }
.tour .intro { color: var(--ink-2); margin: 0 0 40px; max-width: 640px; }
.step { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; padding-block: 40px; border-top: 1px solid var(--line); }
.step:nth-of-type(even) { grid-template-columns: 1.25fr 1fr; }
.step:nth-of-type(even) .step-text { order: 2; }
.step p { color: var(--ink-2); margin: 0 0 14px; }
.tip { border-left: 2px solid var(--line); padding: 2px 0 2px 16px; font-size: 15.5px; color: var(--ink-2); }
.tip strong { color: var(--ink); }
kbd, code { font-family: var(--mono); font-size: .9em; background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }

/* getting started */
.start { padding-block: 56px; }
.start ol { padding-left: 22px; margin: 0; }
.start li { margin: 8px 0; color: var(--ink-2); }
.start li strong { color: var(--ink); }

/* FAQ */
.faq { padding-block: 24px 72px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "-"; }
.faq details p { color: var(--ink-2); margin: 10px 0 4px; }

/* footer */
.site-foot { border-top: 1px solid var(--line); padding-block: 28px 48px; font-size: 15px; color: var(--ink-3); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.site-foot .grow { flex: 1; min-width: 260px; }
.site-foot a { color: var(--ink-2); }

/* zoom (lightbox) */
dialog.zoom { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh; }
dialog.zoom::backdrop { background: rgba(10, 13, 18, .85); }
dialog.zoom img { max-width: 96vw; max-height: 94vh; width: auto; border-radius: 10px; cursor: zoom-out; }

/* privacy page */
.doc { padding-block: 24px 72px; }
.doc h1 { font-size: 42px; margin-bottom: 4px; }
.doc .date { color: var(--ink-3); margin: 0 0 28px; }
.doc h2 { font-size: 24px; margin: 34px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 15.5px; }
.doc th, .doc td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--ink-3); font-weight: 600; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }
.lang-switch { font-size: 15px; color: var(--ink-3); }

@media (max-width: 820px) {
  .hero, .step, .step:nth-of-type(even) { grid-template-columns: 1fr; gap: 28px; }
  .step:nth-of-type(even) .step-text { order: 0; }
  .site-head nav { gap: 14px; font-size: 14px; }
  .hero { padding-top: 16px; }
}
@media (max-width: 480px) {
  .site-head .name { white-space: nowrap; }
  .site-head nav { gap: 12px; }
  .actions { column-gap: 12px; }
  .button:not(.icon) { padding-inline: 16px; }
  /* both links are also in the footer */
  .site-head nav a[href*="privacy.html"], .site-head nav a[href^="https://github.com"] { display: none; }
}
@media (max-width: 400px) {
  /* narrow phones: the language and theme buttons must stay inside the side gutter */
  .site-head nav { gap: 8px; }
  .site-head nav a.lang, .theme-toggle { margin-left: 0; }
}
dialog.zoom:focus, dialog.zoom:focus-visible { outline: none; }
