@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

/* Same palette as the app window, so the site and the app read as one object. */
:root {
  --case: #dee0e6;
  --case-deep: #cdd0d8;
  --case-line: #c3c6cf;
  --cap: #f8f8fa;
  --cap-side: #b4b7c3;
  --ink: #24222c;
  --ink-soft: #55535f;
  --cobalt: #2f45c8;
  --cobalt-side: #1d2c8a;
  --cobalt-top: #4a5fdc;
  --honey: #e2ad2f;
  --honey-ink: #4a3608;
  --wide: 118%;
  --measure: 66ch;
  --page: 1160px;
  --gutter: clamp(20px, 4.5vw, 56px);

  color-scheme: light;
  font-family: "Archivo", "Segoe UI Variable Text", "Segoe UI", system-ui, sans-serif;
  font-size: 106.25%;
  line-height: 1.55;
  color: var(--ink);
  background: var(--case);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }

::selection { background: var(--cobalt); color: #fff; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; }

a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { font-stretch: var(--wide); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.4rem, 1.2rem + 4.4vw, 4.15rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 1.25rem + 2vw, 2.6rem); font-weight: 760; line-height: 1.08; letter-spacing: -0.022em; }
h3 { font-size: 1.12rem; font-weight: 680; line-height: 1.3; letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

/* Header */
.masthead { padding: 22px 0; }
.masthead .wrap { display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 760; font-stretch: var(--wide); font-size: 1.2rem; letter-spacing: -0.015em; }
.brand img { width: 34px; height: 34px; }
.nav { display: flex; gap: 24px; margin-left: auto; align-items: center; }
.nav-link { color: var(--ink); text-decoration: none; font-size: 0.95rem; }
.nav-link:hover { text-decoration: underline; }
@media (max-width: 760px) { .nav .nav-link { display: none; } .nav .nav-link.nav-keep { display: inline; } }

/* Keycap: the one physical object on the page; buttons and the sound board share it. */
.cap {
  --top: var(--cap);
  --side: var(--cap-side);
  --legend: var(--ink);
  position: relative;
  display: inline-flex;
  appearance: none;
  border: 0;
  margin: 0 0 6px;
  font: inherit;
  color: var(--legend);
  text-decoration: none;
  cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255,255,255,.6), rgba(255,255,255,0) 50%),
    var(--top);
  border-radius: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    0 6px 0 var(--side),
    0 9px 14px -2px rgba(30, 32, 52, .28);
  transform: translateY(0);
  transition: transform 70ms cubic-bezier(.2,.8,.2,1), box-shadow 70ms cubic-bezier(.2,.8,.2,1);
}
.cap:hover { --top: #fff; }
.cap:active, .cap.is-down {
  transform: translateY(5px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.5),
    0 1px 0 var(--side),
    0 2px 4px rgba(30, 32, 52, .25);
}
.cap-blue { --top: var(--cobalt); --side: var(--cobalt-side); --legend: #fff; }
.cap-blue { background: linear-gradient(180deg, var(--cobalt-top), var(--cobalt) 55%); }
.cap-blue:hover { --top: var(--cobalt); background: linear-gradient(180deg, #5669e0, #3349cf 55%); }

.btn { align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; font-weight: 680; font-size: 1rem; line-height: 1.2; white-space: nowrap; }
.btn-sm { padding: 9px 15px; font-size: 0.93rem; border-radius: 9px; }

/* Hero */
.hero { padding: clamp(32px, 5vw, 64px) 0 0; }
.hero-top { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1fr); gap: 28px clamp(32px, 4vw, 56px); align-items: end; }
.hero h1 { text-wrap: balance; }
@media (max-width: 900px) { .hero-top { grid-template-columns: 1fr; } }
.lede { margin: 0; font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem); line-height: 1.5; max-width: 40ch; color: var(--ink); }
.hero-actions { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.hero-actions p { color: var(--ink-soft); font-size: 0.95rem; max-width: 34ch; line-height: 1.45; }

/* Sound board */
.listen { margin-top: clamp(40px, 5.5vw, 64px); }
.listen-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 18px; }
.listen-head p { color: var(--ink-soft); }
.plate {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px 14px;
  padding: clamp(14px, 2vw, 22px);
  border-radius: 18px;
  background: var(--case-deep);
  box-shadow: inset 0 3px 8px rgba(30, 32, 52, .18), inset 0 -1px 0 rgba(255,255,255,.55);
}
.plate .cap {
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 132px;
  padding: 14px 15px 13px;
  text-align: left;
}
.cap-name { font-weight: 700; font-stretch: 108%; font-size: 1.06rem; line-height: 1.2; }
.cap-desc { margin-top: 5px; font-size: 0.9rem; line-height: 1.35; color: var(--ink-soft); }
.cap-tier { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 7px; font-size: 0.86rem; color: var(--ink-soft); }
.cap-tier::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--honey); box-shadow: 0 0 0 1px rgba(74,54,8,.25); }
.cap-tier.free::before { background: var(--cobalt); box-shadow: none; }
.plate .cap[aria-pressed="true"] { --top: var(--cobalt); --side: var(--cobalt-side); --legend: #fff; background: linear-gradient(180deg, var(--cobalt-top), var(--cobalt) 55%); }
.plate .cap[aria-pressed="true"] .cap-desc,
.plate .cap[aria-pressed="true"] .cap-tier { color: #e3e7ff; }
.plate .cap[aria-pressed="true"] .cap-tier.free::before { background: #fff; }

.player { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.player audio { width: min(100%, 380px); height: 44px; }
.now { font-size: 0.98rem; }
.now strong { font-weight: 700; }
.now span { color: var(--ink-soft); }

@media (max-width: 960px) {
  .plate { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .plate { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
  .plate .cap { min-height: 116px; padding: 12px 12px 11px; }
  .plate .cap:last-child { grid-column: span 2; min-height: 84px; }
}

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0 0; }
.section > .wrap > h2 { max-width: 20ch; }
.section-intro { margin-top: 16px; max-width: 52ch; font-size: 1.08rem; color: var(--ink-soft); }

.features { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 88px); margin-top: 44px; align-items: start; }
.feature-group + .feature-group { margin-top: 38px; }
.feature-group ul { margin: 12px 0 0; padding: 0; list-style: none; }
.feature-group li { position: relative; padding-left: 22px; max-width: var(--measure); }
.feature-group li + li { margin-top: 9px; }
.feature-group li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--ink); }
.feature-group p { margin-top: 12px; max-width: var(--measure); }
.pro-note { display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--honey); color: var(--honey-ink); font-size: .78rem; font-weight: 700; vertical-align: 2px; }

kbd {
  display: inline-block;
  font: inherit;
  font-size: .82em;
  font-weight: 620;
  line-height: 1.2;
  padding: 2px 7px 1px;
  margin: 0 1px;
  border-radius: 6px;
  background: linear-gradient(180deg, #fff, var(--cap));
  box-shadow: 0 2px 0 var(--cap-side), 0 3px 4px -1px rgba(30, 32, 52, .25);
  vertical-align: 1px;
}

.shot { position: sticky; top: 28px; margin: 0; }
.shot img { border-radius: 14px; box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 18px 40px -16px rgba(30, 32, 52, .45), 0 2px 6px rgba(30, 32, 52, .12); }
.shot figcaption { margin-top: 14px; font-size: .9rem; color: var(--ink-soft); max-width: 44ch; }

@media (max-width: 860px) {
  .features { grid-template-columns: 1fr; }
  .shot { position: static; max-width: 420px; }
}

/* Free vs Pro */
.compare { margin-top: 40px; width: 100%; max-width: 860px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.compare th, .compare td { padding: 14px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--case-line); }
.compare thead th { font-stretch: var(--wide); font-size: 1.15rem; font-weight: 740; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.compare tbody th { font-weight: 450; }
.compare td { width: 22%; text-align: center; }
.compare thead th:not(:first-child) { text-align: center; }
.compare tfoot td, .compare tfoot th { border-bottom: 0; padding-top: 22px; }
.compare tfoot th { font-weight: 450; color: var(--ink-soft); }
.compare .price { font-stretch: var(--wide); font-weight: 760; font-size: 1.35rem; display: block; }
.compare .price-note { display: block; font-size: .85rem; color: var(--ink-soft); margin-top: 2px; }
.compare td.pro-col { background: rgba(248, 248, 250, .55); }
.yes, .no { display: inline-block; vertical-align: middle; }
.yes { width: 22px; height: 22px; color: var(--cobalt); }
.no { width: 14px; height: 2px; background: #9a9ca8; border-radius: 1px; }
.buy-under { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.buy-under p { color: var(--ink-soft); font-size: .95rem; max-width: 46ch; }

@media (max-width: 560px) {
  .compare th, .compare td { padding: 12px 8px; }
  .compare td { width: 24%; }
  .compare tbody th { font-size: .95rem; }
  .compare .price { font-size: 1.12rem; }
}

/* Download */
.store-slot {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  padding: 26px 28px;
  max-width: 860px;
  border-radius: 18px;
  background: var(--case-deep);
  box-shadow: inset 0 3px 8px rgba(30, 32, 52, .14);
}
.store-slot .soon { font-stretch: var(--wide); font-weight: 740; font-size: 1.3rem; letter-spacing: -.01em; }
.store-slot p { max-width: 52ch; color: var(--ink-soft); }
.store-slot p.soon { color: var(--ink); }
.store-slot .soon + p { flex: 1 1 320px; }

/* FAQ */
.faq { margin-top: 36px; max-width: 820px; }
.faq details { border-bottom: 1px solid var(--case-line); }
.faq details:first-child { border-top: 1px solid var(--case-line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative; font-weight: 650; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 11px; height: 11px; margin-top: -8px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg);
  transition: transform 160ms cubic-bezier(.2,.8,.2,1);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq summary:hover { color: var(--cobalt); }
.faq .answer { padding: 0 0 22px; max-width: var(--measure); }
.faq .answer p + p { margin-top: 10px; }

/* Long-form pages */
.doc { padding: clamp(36px, 6vw, 72px) 0 0; }
.doc h1 { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 3.8rem); max-width: 16ch; }
.doc .meta { margin-top: 16px; color: var(--ink-soft); }
.doc-body { max-width: var(--measure); margin-top: 40px; }
.doc-body h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.7rem); margin: 52px 0 14px; }
.doc-body h3 { margin: 28px 0 8px; }
.doc-body p, .doc-body ul, .doc-body ol, .doc-body dl { margin: 0 0 14px; }
.doc-body ul, .doc-body ol { padding-left: 1.3em; }
.doc-body li + li { margin-top: 6px; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .86em; background: var(--case-deep); padding: 1px 6px; border-radius: 5px; overflow-wrap: anywhere; }
.doc-body dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
.doc-body dt { font-weight: 650; }
.doc-body dd { margin: 0; }
@media (max-width: 560px) { .doc-body dl { grid-template-columns: 1fr; gap: 2px; } .doc-body dd { margin-bottom: 10px; } }

.steps { list-style: none; padding: 0; margin: 40px 0 0; max-width: 760px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 52px 1fr; gap: 0 20px; padding: 0 0 34px; }
.steps li::before {
  content: counter(step);
  grid-column: 1;
  grid-row: 1 / span 8;
  align-self: start;
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  font-weight: 760; font-stretch: var(--wide); font-size: 1.15rem;
  border-radius: 9px;
  background: linear-gradient(180deg, #fff, var(--cap));
  box-shadow: 0 4px 0 var(--cap-side), 0 6px 10px -2px rgba(30, 32, 52, .25);
}
.steps li > * { grid-column: 2; min-width: 0; }
.steps h2 { font-size: 1.3rem; margin: 9px 0 8px; }
.steps p + p { margin-top: 10px; }
.steps figure { margin: 18px 0 0; }
.steps figure img { border-radius: 12px; box-shadow: 0 14px 30px -14px rgba(30, 32, 52, .45), 0 2px 5px rgba(30, 32, 52, .12); }
.steps figcaption { margin-top: 10px; font-size: .9rem; color: var(--ink-soft); }

.notfound { padding: clamp(60px, 12vw, 140px) 0 40px; }
.notfound .cap { margin-top: 34px; }
.notfound p { margin-top: 20px; max-width: 44ch; font-size: 1.12rem; }

/* Footer */
.footer { margin-top: clamp(88px, 12vw, 150px); padding: 40px 0 46px; background: var(--case-deep); font-size: .92rem; color: var(--ink-soft); }
.footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px 48px; align-items: start; }
.footer address { font-style: normal; line-height: 1.6; max-width: 56ch; }
.footer address strong { color: var(--ink); font-weight: 650; }
.footer nav { display: flex; flex-direction: column; gap: 6px; text-align: right; }
.footer a { color: var(--ink); }
.footer .fine { grid-column: 1 / -1; }
@media (max-width: 640px) {
  .footer .wrap { grid-template-columns: 1fr; }
  .footer nav { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 8px 20px; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .cap:active, .cap.is-down { transform: none; }
}

@media (forced-colors: active) {
  .cap { border: 2px solid ButtonText; }
  .plate .cap[aria-pressed="true"] { border-color: Highlight; outline: 2px solid Highlight; }
}

@media (max-width: 560px) {
  .steps li { grid-template-columns: 38px 1fr; gap: 0 14px; }
  .steps li::before { width: 36px; height: 36px; font-size: 1rem; border-radius: 8px; }
  .steps h2 { margin-top: 4px; }
}
