/* Quietly Labs — quietly-labs.com */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url("/fonts/instrument-sans-latin-ext-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  font-stretch: 75% 100%;
  src: url("/fonts/instrument-sans-latin-wdth-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --fog: #eef0f4;
  --surface: #f8f9fb;
  --surface-2: #e4e7ee;
  --ink: #1c2333;
  --muted: #555e72;
  --line: #d6dae3;
  --signal: #3f4fc4;
  --signal-ink: #ffffff;
  --signal-soft: rgba(63, 79, 196, 0.09);
  --focus: #3f4fc4;
  --shadow: 0 1px 2px rgba(28, 35, 51, 0.04), 0 8px 24px -12px rgba(28, 35, 51, 0.12);
  --shadow-hover: 0 1px 2px rgba(28, 35, 51, 0.05), 0 16px 36px -14px rgba(28, 35, 51, 0.22);
  --radius: 1.25rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fog: #141925;
    --surface: #1a2030;
    --surface-2: #222a3d;
    --ink: #e7eaf1;
    --muted: #9ba4b8;
    --line: #2b3244;
    --signal: #9ba7ff;
    --signal-ink: #141925;
    --signal-soft: rgba(155, 167, 255, 0.12);
    --focus: #9ba7ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 1px 2px rgba(0, 0, 0, 0.25), 0 16px 36px -14px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font-family: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

/* A faint indigo glow behind the hero, nothing more */
body::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 42rem;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(60rem 28rem at 15% -8rem, var(--signal-soft), transparent 70%);
}

.page {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 max(1.5rem, env(safe-area-inset-left)) 0 max(1.5rem, env(safe-area-inset-right));
}

a {
  color: var(--signal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: var(--fog);
  text-decoration: none;
  z-index: 10;
}
.skip:focus {
  top: 1rem;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--ink);
  font-weight: 640;
  font-stretch: 92%;
  font-size: 1.125rem;
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-decoration: none;
}
.mark {
  width: 1.75rem;
  height: 1.75rem;
  flex: none;
}
.mark > rect:first-child {
  fill: var(--signal);
}
.mark-bar {
  fill: var(--signal-ink);
}
.site-nav {
  display: flex;
  gap: 0.25rem;
  font-size: 0.9375rem;
}
.site-nav a {
  padding: 0.375rem 0.75rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}
.site-nav a:hover {
  color: var(--ink);
  background: var(--surface-2);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.875rem;
  padding: 0.625rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 560;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s, background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--signal);
  color: var(--signal-ink);
  box-shadow: 0 6px 18px -8px var(--signal);
}
.btn-primary:hover {
  box-shadow: 0 10px 24px -10px var(--signal);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
}
.btn-ghost:hover {
  border-color: var(--muted);
}

/* Hero */
.hero {
  padding: clamp(3rem, 10vw, 6.5rem) 0 1rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  padding: 0.3125rem 0.875rem 0.3125rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
}
.dot {
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-soft);
}
.hero h1 {
  margin: 0;
  max-width: 14ch;
  text-wrap: balance;
  font-weight: 420;
  font-stretch: 78%;
  font-size: clamp(2.875rem, 9vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.018em;
}
.hero-sub {
  margin: 1.5rem 0 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1.125rem, 2.2vw, 1.25rem);
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

/* The quiet waveform: the page's one moment of motion */
.wave {
  display: block;
  width: 100%;
  height: 3rem;
  margin: 3.5rem 0 4.5rem;
}
.wave rect {
  fill: var(--signal);
  transform-box: fill-box;
  transform-origin: center;
}
@media (prefers-reduced-motion: no-preference) {
  .wave rect {
    animation: settle 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(var(--i) * 9ms);
  }
  @keyframes settle {
    from {
      transform: scaleY(0.12);
      opacity: 0.35;
    }
    to {
      transform: scaleY(1);
      opacity: 1;
    }
  }
}

/* Sections */
.section {
  margin-bottom: 5rem;
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}
h2 {
  margin: 0;
  font-weight: 600;
  font-stretch: 88%;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

/* App grid */
.apps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.app {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: 1fr auto;
  gap: 1rem 1.125rem;
  padding: 1.375rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.2s;
}
.app:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.app-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px rgba(28, 35, 51, 0.08), 0 4px 12px -4px rgba(28, 35, 51, 0.25);
  object-fit: cover;
}
.app-body {
  min-width: 0;
}
.app-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem 0.625rem;
  margin: 0.125rem 0 0.375rem;
  font-weight: 620;
  font-stretch: 92%;
  font-size: 1.25rem;
  line-height: 1.2;
}
.app-cat {
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: var(--signal-soft);
  color: var(--signal);
  font-size: 0.75rem;
  font-weight: 560;
  letter-spacing: 0.01em;
}
.app-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9875rem;
  text-wrap: pretty;
}
.app-links {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
.app-store {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.875rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--fog);
  font-weight: 560;
  text-decoration: none;
  transition: opacity 0.15s;
}
.app-store:hover {
  opacity: 0.86;
}
.app-meta {
  color: var(--muted);
}
.app-meta:hover {
  color: var(--ink);
}

.email {
  white-space: nowrap;
}

/* Support */
.support {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
}
.support-lede {
  margin: 0 0 1.5rem;
  max-width: 28rem;
  font-size: 1.125rem;
  text-wrap: pretty;
}
.support-email {
  max-width: 100%;
  overflow-wrap: anywhere;
}
.support-tips {
  list-style: none;
  margin: 0;
  padding: 0 0 0 2rem;
  border-left: 1px solid var(--line);
  display: grid;
  align-content: center;
  gap: 0.875rem;
  color: var(--muted);
  font-size: 0.9688rem;
}
.support-tips li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.tip-n {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--signal-soft);
  color: var(--signal);
  font-size: 0.8125rem;
  font-weight: 620;
  transform: translateY(-0.0625rem);
}

/* Company */
.company {
  padding: 0.5rem clamp(1.25rem, 4vw, 2.25rem);
}
.company dl {
  margin: 0;
  font-size: 0.9875rem;
}
.company dl > div {
  display: grid;
  grid-template-columns: 12rem 1fr;
  gap: 0.25rem 1.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.company dl > div:last-child {
  border-bottom: 0;
}
.company dt {
  color: var(--muted);
}
.company dd {
  margin: 0;
}

/* Prose pages */
.prose {
  padding: clamp(2.5rem, 8vw, 4.5rem) 0 3rem;
  max-width: 40rem;
}
.prose h1 {
  margin: 0 0 0.75rem;
  font-weight: 450;
  font-stretch: 80%;
  font-size: clamp(2.5rem, 7vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.prose .updated {
  margin: 0 0 2.5rem;
  color: var(--muted);
}
.prose h2 {
  margin: 2.5rem 0 0.625rem;
  font-size: 1.25rem;
  font-stretch: 92%;
}
.prose p,
.prose ul {
  margin: 0 0 1rem;
}
.prose ul {
  padding-left: 1.25rem;
}
.prose li {
  margin-bottom: 0.375rem;
}

/* 404 */
.notfound {
  padding: clamp(4rem, 14vw, 9rem) 0 6rem;
}
.notfound .code {
  margin: 0 0 1rem;
  color: var(--signal);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.notfound h1 {
  margin: 0 0 1rem;
  font-weight: 420;
  font-stretch: 78%;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1;
}
.notfound p {
  color: var(--muted);
  margin: 0 0 2rem;
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem 1.5rem;
  padding: 2rem 0 max(2.5rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.site-footer a {
  color: var(--muted);
}
.site-footer a:hover {
  color: var(--ink);
}

@media (max-width: 48rem) {
  .apps {
    grid-template-columns: 1fr;
  }
  .support {
    grid-template-columns: 1fr;
  }
  .support-tips {
    padding: 1.5rem 0 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 40rem) {
  .site-header {
    padding: 1.125rem 0;
  }
  .site-nav {
    gap: 0;
    margin-right: -0.75rem;
  }
  .site-nav a {
    padding: 0.375rem 0.625rem;
  }
  .wordmark span {
    font-size: 1.0625rem;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
  }
  .wave {
    margin: 2.5rem 0 3.5rem;
  }
  .section {
    margin-bottom: 3.75rem;
  }
  .app {
    padding: 1.125rem;
  }
  .company dl > div {
    grid-template-columns: 1fr;
    gap: 0.125rem;
    padding: 0.875rem 0;
  }
}

@media (max-width: 28rem) {
  .site-nav .nav-secondary {
    display: none;
  }
}
