/* Bandpass site. Colors come from the app icon's rainbow bars; panels and caps labels follow the app's instrument look. */
@font-face {
  font-family: "Jura";
  src: url("/assets/fonts/jura-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Roboto";
  src: url("/assets/fonts/roboto-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0a0e11;
  --bg-2: #0f1519;
  --panel: #141b20;
  --panel-2: #1b242a;
  --line: #2a353c;
  --line-2: #3a4750;
  --text: #edf2f4;
  --muted: #a7b6bd;
  --accent: #2ee6c8;
  --accent-ink: #04211c;
  --c1: #ff3b30;
  --c2: #ff8c1a;
  --c3: #ffd60a;
  --c4: #c6ff1a;
  --c5: #3dff2e;
  --c6: #2dffb3;
  --c7: #22b8ff;
  --c8: #4f7bff;
  --c9: #a44dff;
  --c10: #ee3fd0;
  --c11: #ff2d55;
  --rainbow: linear-gradient(90deg, var(--c1), var(--c2), var(--c3), var(--c5), var(--c6), var(--c7), var(--c9), var(--c10));
  --display: "Jura", "Roboto", system-ui, sans-serif;
  --body: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  --wide: 1180px;
  --radius: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #7ff3df; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }

.wrap { width: min(var(--wide), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--panel-2); color: var(--text); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Caps label with the colored tick from the app's panels */
.label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 13px/1 var(--display);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}
.label::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--tick, var(--accent)); box-shadow: 0 0 10px var(--tick, var(--accent)); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 24px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--text);
  font: 600 16px/1.2 var(--display);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.btn:hover { color: var(--text); border-color: var(--accent); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 0 28px rgba(46, 230, 200, .35); }
.btn-primary:hover { color: var(--accent-ink); background: #62f0d9; box-shadow: 0 0 40px rgba(46, 230, 200, .55); }
.btn-small { min-height: 40px; padding: 6px 18px; font-size: 14px; }

/* Header */
.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(10, 14, 17, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font: 600 16px/1 var(--display); letter-spacing: 0.26em; }
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a:not(.btn) { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--text); }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span, .menu summary span::before, .menu summary span::after { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 1px; }
.menu summary span { position: relative; }
.menu summary span::before, .menu summary span::after { content: ""; position: absolute; left: 0; }
.menu summary span::before { top: -6px; }
.menu summary span::after { top: 6px; }
.menu nav { position: absolute; top: 64px; left: 0; right: 0; padding: 12px var(--gutter) 22px; background: #0d1317; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.menu nav a:not(.btn) { color: var(--text); text-decoration: none; padding: 11px 0; }
.menu nav .btn { margin-top: 10px; }
@media (max-width: 760px) { .nav-links { display: none; } .menu { display: block; } }

/* Footer */
.site-foot { position: relative; margin-top: 96px; background: var(--bg-2); border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.site-foot::before { content: ""; position: absolute; inset: -1px 0 auto 0; height: 2px; background: var(--rainbow); opacity: .7; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; padding-block: 48px 28px; }
.site-foot h2 { font: 600 12px/1 var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-foot li a { color: var(--text); text-decoration: none; }
.site-foot li a:hover { color: var(--accent); }
.foot-tag { margin-top: 14px; max-width: 34ch; }
.foot-legal { padding-block: 18px 30px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; }
.foot-legal p { margin: 0; }
@media (max-width: 680px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }

/* Hero */
.hero { position: relative; min-height: clamp(720px, 100svh, 1100px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; background: radial-gradient(90% 70% at 50% 38%, #111b21 0%, var(--bg) 70%); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 140px; background: linear-gradient(transparent, var(--bg)); z-index: -1; }
.ring-btn { position: absolute; left: 50%; top: var(--ring-y, 38%); width: var(--ring-d, 280px); height: var(--ring-d, 280px); transform: translate(-50%, -50%); border-radius: 50%; border: 0; background: transparent; cursor: pointer; padding: 0; color: var(--text); }
.ring-btn:focus-visible { outline-offset: 6px; border-radius: 50%; }
.hero-copy { text-align: center; padding: 0 var(--gutter) 56px; }
.wordmark { font: 500 clamp(15px, 2vw, 19px)/1 var(--display); letter-spacing: .5em; margin: 0 0 16px; padding-left: .5em; color: var(--text); }
.hero h1 { font-size: clamp(40px, 7.4vw, 84px); font-weight: 600; letter-spacing: -.015em; }
.hero-sub { margin: 16px auto 26px; max-width: 34em; color: #c7d3d8; font-size: clamp(17px, 2vw, 20px); line-height: 1.5; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-hint { margin: 16px 0 0; font-size: 14px; color: var(--muted); }

/* Sections */
section[id] { scroll-margin-top: 80px; }
.band { padding-block: clamp(64px, 9vw, 120px); }
.band h2 { font-size: clamp(30px, 4.4vw, 48px); margin: 16px 0 14px; }
.lede { color: var(--muted); font-size: clamp(17px, 1.7vw, 19px); max-width: 44em; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.flip > .split-copy { order: 2; }
@media (max-width: 900px) { .split, .split.flip { grid-template-columns: minmax(0, 1fr); } .split.flip > .split-copy { order: 0; } }

.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 22px; color: #d5dfe3; line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .35em; width: 4px; height: .9em; border-radius: 2px; background: var(--tick, var(--accent)); box-shadow: 0 0 8px var(--tick, var(--accent)); }
.ticks strong { color: var(--text); font-weight: 500; }

/* Screens */
.screen { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #05080a; box-shadow: 0 30px 80px -24px rgba(0, 0, 0, .9), 0 0 60px -26px var(--tick, var(--accent)); }
.stack { position: relative; padding-bottom: 12%; }
.stack .screen:nth-child(2) { position: absolute; width: 62%; right: -2%; bottom: 0; }
@media (max-width: 900px) { .stack .screen:nth-child(2) { right: 0; } }

/* Numbers */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); background: var(--bg-2); }
.stat { padding: clamp(22px, 3.4vw, 40px) 12px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font: 600 clamp(28px, 4vw, 46px)/1.1 var(--display); background: var(--rainbow); background-size: 400% 100%; background-position: var(--p, 0%) 0; -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(3) { border-left: 0; } .stat:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Step grid */
.seq { margin-top: 30px; padding: clamp(14px, 2.4vw, 24px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 80px -40px rgba(46, 230, 200, .35); }
.seq-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 18px; }
.seq-play { width: 56px; height: 56px; flex: none; border-radius: 50%; border: 2px solid var(--c5); background: #12261a; color: var(--c5); display: grid; place-items: center; cursor: pointer; box-shadow: 0 0 20px rgba(61, 255, 46, .22); }
.seq-play[aria-pressed="true"] { border-color: var(--c1); background: #2a1414; color: var(--c1); box-shadow: 0 0 20px rgba(255, 59, 48, .25); }
.seq-play svg { width: 22px; height: 22px; fill: currentColor; }
.seq-control { display: grid; gap: 6px; flex: 1 1 130px; max-width: 240px; font: 600 11px/1 var(--display); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.seq-control output { float: right; color: var(--text); letter-spacing: .04em; }
.seq-control input[type=range] { width: 100%; height: 28px; margin: 0; background: transparent; accent-color: var(--accent); cursor: pointer; }
.seq-actions { display: flex; gap: 8px; margin-left: auto; }
.seq-grid { display: grid; gap: 10px; }
.seq-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: center; --row: var(--accent); }
.seq-name { font: 600 13px/1 var(--display); letter-spacing: .06em; color: var(--row); }
.seq-steps { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 4px; }
.seq-cell { height: 40px; padding: 0; border-radius: 6px; border: 1px solid var(--line); background: var(--panel-2); cursor: pointer; transition: background .08s, box-shadow .08s, transform .08s; touch-action: manipulation; }
.seq-cell:nth-child(8n+5), .seq-cell:nth-child(8n+6), .seq-cell:nth-child(8n+7), .seq-cell:nth-child(8n+8) { background: #151d22; }
.seq-cell:hover { border-color: var(--row); }
.seq-cell[aria-pressed="true"] { background: var(--row); border-color: var(--row); box-shadow: 0 0 12px -1px var(--row); }
.seq-cell.now { border-color: #fff; }
.seq-cell.now[aria-pressed="true"] { transform: scale(1.08); filter: brightness(1.25); }
.seq-note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
@media (max-width: 680px) {
  .seq-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .seq-steps { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .seq-cell { height: 38px; }
  .seq-actions { margin-left: 0; }
}

/* Closing call */
.closing { text-align: center; padding-block: clamp(64px, 9vw, 110px) 0; }
.closing img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 22px; box-shadow: 0 0 60px rgba(46, 230, 200, .3); }
.closing h2 { font-size: clamp(30px, 4.6vw, 50px); }
.closing p { color: var(--muted); margin: 14px auto 26px; max-width: 34em; }

/* Reveal on scroll: only elements below the fold get .pre, added by script, so no script means no hiding */
.pre { opacity: 0; transform: translateY(20px); }
.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }

/* Plain pages */
.page { padding-top: 112px; }
.page-head { margin-bottom: 34px; }
.page-head h1 { font-size: clamp(34px, 5.2vw, 56px); margin-top: 14px; }
.page-head p { color: var(--muted); margin: 12px 0 0; max-width: 42em; }
.updated { font-size: 14px; }

.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(22px, 2.6vw, 28px); margin: 2.1em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 600 18px/1.3 var(--body); margin: 1.6em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--muted); }
.prose strong { font-weight: 500; color: #fff; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
.prose th { font: 600 12px/1.3 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.prose .caps { font-size: 15px; letter-spacing: .01em; color: #d5dfe3; }

.card { padding: 22px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 1.4em; }
.card > :last-child { margin-bottom: 0; }
.card h2, .card h3 { margin-top: 0; }
.summary { --tick: var(--accent); border-left: 3px solid var(--tick); }
.summary .label { margin-bottom: 12px; }

.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto; font-size: 14px; }
.toc .label { margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 5px 0 5px 12px; color: var(--muted); text-decoration: none; border-left: 1px solid var(--line); line-height: 1.35; }
.toc a:hover { color: var(--text); border-left-color: var(--accent); }
@media (max-width: 920px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
}

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.contact-grid .card { margin: 0; }
.contact-grid h2 { font-size: 20px; margin-bottom: 8px; }
.contact-grid p { color: var(--muted); font-size: 15px; }
.contact-grid a { font-weight: 500; overflow-wrap: anywhere; }

/* Delete my account panel */
.btn-danger { background: #3a1416; border-color: var(--c1); color: #ffd9d6; }
.btn-danger:hover { background: #551a1c; border-color: var(--c1); color: #fff; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.del-panel { margin: 20px 0 24px; border-color: var(--line-2); scroll-margin-top: 84px; }
.del-panel h2 { font-size: 22px; margin: 0 0 8px; }
.del-providers { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.del-or { color: var(--muted); font-size: 14px; margin: 18px 0 8px; }
.del-form { display: grid; gap: 6px; max-width: 420px; }
.del-form label { font-size: 14px; color: var(--muted); margin-top: 8px; }
.del-form input { min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; width: 100%; }
.del-form input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.del-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; align-items: center; }
.btn.del-link { background: none; border-color: transparent; color: var(--accent); font: 400 14px/1.3 var(--body); min-height: 40px; padding: 6px 4px; text-align: left; }
.del-warning { padding: 12px 14px; margin: 0 0 14px; border-radius: 10px; border: 1px solid var(--c2); background: #2a1c0c; color: #ffe2c2; font-size: 15px; }
.del-status { margin: 14px 0 0; min-height: 1.4em; font-size: 15px; color: #ffd9a8; }
.del-status:empty { display: none; }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 34px 18px 0; list-style: none; position: relative; font: 600 18px/1.35 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 24px; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 12px; color: #d5dfe3; }
.faq-group { margin-top: 40px; }

.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 40px; }
.center-page img { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto 26px; box-shadow: 0 0 70px rgba(46, 230, 200, .3); }
.center-page h1 { font-size: clamp(32px, 5vw, 50px); }
.center-page p { color: var(--muted); margin: 14px auto 26px; max-width: 32em; }
.center-page .hero-cta { margin-top: 8px; }

@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-head, .site-foot, .toc, .skip { display: none; }
  .page { padding-top: 0; }
  .doc { display: block; }
  .card, .summary { background: none; border: 1px solid #999; }
  .prose strong, .prose .caps, .page-head p, .label { color: #000; }
  a { color: #000; }
}
