/* Stowaway site. Direction: a ship's cargo manifest. Ink-tinted neutrals, the icon's blue as the
   one accent, mono "manifest" lines for counts. Redesigned with unslop by @heydamir (CC BY 4.0). */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/plus-jakarta-sans-latin-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB,
    U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light dark;
  --bg: #f5f7fa;
  --card: #ffffff;
  --raised: #eceff4;
  --text: #111827;
  --text-2: #4b5565;
  --muted: #6b7487;
  --line: rgb(17 24 39 / 0.08);
  --line-strong: rgb(17 24 39 / 0.14);
  --accent: #3a68cf;
  --accent-ink: #2f5dc4;
  --on-accent: #ffffff;
  --accent-soft: #e8eefb;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.05), 0 12px 32px rgb(17 24 39 / 0.08);
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d14;
    --card: #11141c;
    --raised: #1a1e28;
    --text: #eef0f5;
    --text-2: #a3a9b8;
    --muted: #7a8296;
    --line: rgb(238 240 245 / 0.08);
    --line-strong: rgb(238 240 245 / 0.14);
    --accent: #8cb0f5;
    --accent-ink: #9dbcf7;
    --on-accent: #0b1430;
    --accent-soft: #1c2740;
    --shadow: 0 16px 40px rgb(0 0 0 / 0.4);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-ink);
  text-underline-offset: 3px;
  transition: color 160ms var(--ease);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

kbd {
  display: inline-block;
  min-width: 20px;
  padding: 0 6px;
  font: 500 12px/20px var(--mono);
  text-align: center;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
}

/* Navigation */

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.brand img {
  width: 24px;
  height: 24px;
}

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-2);
  font-size: 14px;
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--text);
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 500 15px/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 160ms var(--ease),
    border-color 160ms var(--ease),
    transform 120ms var(--ease);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16);
}

.btn-primary:hover {
  background: var(--accent-ink);
}

.btn-quiet {
  color: var(--text);
  background: var(--card);
  border-color: var(--line-strong);
}

.btn-quiet:hover {
  background: var(--raised);
}

.btn-small {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

.btn svg {
  width: 16px;
  height: 16px;
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px;
  align-items: center;
  min-height: min(calc(100vh - 64px), 720px);
  padding-block: 32px 64px;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: 56px;
  line-height: 1.04;
  text-wrap: balance;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.hero .lede {
  margin: 0 0 32px;
  max-width: 34rem;
  font-size: 19px;
  line-height: 30px;
  color: var(--text-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.hero-copy,
.preview {
  animation: rise 480ms var(--ease) both;
}

.preview {
  animation-delay: 60ms;
}

/* Transform only: content is never hidden, even if a browser pauses animations. */
@keyframes rise {
  from {
    transform: translateY(8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-copy,
  .preview {
    animation: none;
  }
}

/* The moment: a crowded Chrome window, stowed into a tidy list */

.preview {
  position: relative;
}

.window {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.tabstrip {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 40px;
  padding: 8px 8px 0;
  background: var(--raised);
  border-bottom: 1px solid var(--line);
}

.tabstrip .dots {
  display: flex;
  gap: 6px;
  align-self: center;
  margin: 0 8px 8px 4px;
}

.tabstrip .dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-strong);
}

.tab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  height: 32px;
  padding: 0 6px;
  border-radius: 8px 8px 0 0;
  background: color-mix(in srgb, var(--card) 45%, transparent);
}

.tab.on {
  background: var(--card);
}

.ico {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  font: 600 10px/1 var(--sans);
  color: #fff;
}

.stowed {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  min-height: 380px;
}

.stowed aside {
  padding: 16px 12px;
  border-right: 1px solid var(--line);
  font-size: 13px;
}

.stowed aside .brand {
  font-size: 13px;
  margin: 0 4px 16px;
}

.stowed aside .brand img {
  width: 18px;
  height: 18px;
}

.side-item {
  display: flex;
  justify-content: space-between;
  height: 32px;
  align-items: center;
  padding: 0 8px;
  border-radius: 8px;
  color: var(--text-2);
}

.side-item.on {
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 500;
}

.stowed main {
  padding: 16px 20px 20px;
  min-width: 0;
}

.notice {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  margin-bottom: 16px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 13px;
}

.notice svg {
  width: 16px;
  height: 16px;
  color: var(--accent-ink);
}

.notice .mono {
  margin-left: auto;
}

.search {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  margin-bottom: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
}

.search svg {
  width: 16px;
  height: 16px;
}

.search kbd {
  margin-left: auto;
}

.group + .group {
  margin-top: 16px;
}

.group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.group-head strong {
  font-size: 14px;
  font-weight: 600;
}

.row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  height: 32px;
  font-size: 13px;
}

.row span:nth-child(2) {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.row .host {
  color: var(--muted);
  font-size: 12px;
}

/* Sections */

section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px;
}

h2 {
  margin: 0 0 16px;
  text-wrap: balance;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.section-head > div:first-child {
  position: sticky;
  top: 32px;
  align-self: start;
}

.section-head p {
  margin: 0;
  color: var(--text-2);
  font-size: 17px;
  line-height: 28px;
}

.features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li {
  display: grid;
  grid-template-columns: 24px 180px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.features li:first-child {
  padding-top: 0;
}

.features svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
  transform: translateY(3px);
}

.features strong {
  font-weight: 500;
}

.features span {
  color: var(--text-2);
  font-size: 15px;
}

/* Privacy manifest */

.manifest {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 24px;
}

.manifest div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--line-strong);
  font-size: 15px;
}

.manifest div:last-child {
  border-bottom: 0;
}

.manifest dt {
  color: var(--text-2);
}

.manifest dd {
  margin: 0;
  font: 500 14px/24px var(--mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.languages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 15px;
}

.languages img {
  width: 20px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -1px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--line-strong);
}

.closing {
  text-align: center;
}

.closing p {
  margin: 0 auto 32px;
  max-width: 32rem;
  color: var(--text-2);
  font-size: 17px;
}

/* Footer */

footer {
  border-top: 1px solid var(--line);
}

footer .wrap {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 80px;
  font-size: 14px;
  color: var(--muted);
}

footer nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}

footer a {
  color: var(--text-2);
  text-decoration: none;
}

footer a:hover {
  color: var(--text);
}

/* Inner pages */

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 32px 96px;
}

.page h1 {
  margin: 0 0 12px;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.page .lede {
  margin: 0 0 40px;
  color: var(--text-2);
  font-size: 17px;
  line-height: 28px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.contact strong {
  display: block;
  font-weight: 500;
}

.faq h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 56px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font: 400 20px/1 var(--mono);
  color: var(--muted);
  transition: transform 160ms var(--ease);
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  margin: 0 0 20px;
  color: var(--text-2);
}

.prose h2 {
  margin: 48px 0 12px;
  font-size: 22px;
  line-height: 1.3;
}

.prose p,
.prose li {
  color: var(--text-2);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}

.prose code {
  font-family: var(--mono);
  font-size: 0.9em;
  padding: 1px 4px;
  border-radius: 4px;
  background: var(--raised);
}

/* Uninstall */

.form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

textarea {
  display: block;
  width: 100%;
  min-height: 140px;
  padding: 12px 14px;
  font: 400 15px/1.5 var(--sans);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  resize: vertical;
  transition: border-color 160ms var(--ease);
}

textarea:hover {
  border-color: var(--muted);
}

.form-end {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
}

.form-end span {
  font-size: 13px;
  color: var(--muted);
}

.after {
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-2);
}

/* Small screens */

@media (max-width: 900px) {
  .hero,
  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .hero {
    min-height: 0;
    max-height: none;
    padding-block: 48px 64px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero .lede {
    font-size: 17px;
    line-height: 28px;
  }
  .stowed {
    grid-template-columns: 1fr;
  }
  .stowed aside {
    display: none;
  }
  section {
    padding: 64px 0;
  }
  .features li {
    grid-template-columns: 24px minmax(0, 1fr);
  }
  .features span {
    grid-column: 2;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 20px;
  }
  .nav {
    gap: 16px;
  }
  .nav-links {
    display: none;
  }
  .nav .btn {
    margin-left: auto;
  }
  .page {
    padding: 40px 20px 64px;
  }
  .page h1 {
    font-size: 32px;
  }
  footer .wrap {
    flex-direction: column;
    justify-content: center;
    height: auto;
    padding: 24px 20px;
    gap: 12px;
  }
  footer nav {
    margin-left: 0;
  }
  .form-end {
    flex-direction: column;
    align-items: stretch;
  }
}
