/* Winnow landing page. Tokens and base styles mirror sdev.in (web/src/styles/global.css). */

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
}

/* partial:chrome:start (landing/partials/chrome.css, kept in step by scripts/landing-partials.mjs) */
:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --fg: #0f172a;
  --muted: #5b6577;
  --border: #e3e7ee;
  --accent: #0d9488;
  --accent-fg: #ffffff;
  --accent-ink: #0f766e;
  --accent-solid: #0f766e; /* filled buttons: white text needs AA contrast */
  --ring: #0ea5a0;
  --brand-teal: #21dbaa;
  --brand-blue: #00b4ef;
  --brand-violet: #5f1ae5;
  --gold: #f5c518;
  --bad: #dc2626;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.05);
  --font: "Inter Variable", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0f19;
  --surface: #111827;
  --surface-2: #182136;
  --fg: #e6e9ef;
  --muted: #98a2b3;
  --border: rgba(255, 255, 255, 0.09);
  --accent: #21dbaa;
  --accent-fg: #06251c;
  --accent-ink: #21dbaa;
  --accent-solid: #21dbaa;
  --ring: #21dbaa;
  --bad: #f87171;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: color-mix(in oklab, var(--accent) 35%, transparent);
}

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

code {
  font: 0.86em/1 var(--mono);
  padding: 0.15em 0.4em;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--fg);
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.4rem;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface);
  font: 500 0.75rem/1 var(--mono);
  color: var(--fg);
}

svg.i {
  width: 1rem;
  height: 1rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.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;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  background: var(--accent-solid);
  color: var(--accent-fg);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}
@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}
/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.625rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.75rem;
  font: 500 0.875rem/1.25 var(--font);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition:
    background-color 150ms,
    filter 150ms,
    border-color 150ms;
}
.btn-primary {
  background: var(--accent-solid);
  color: var(--accent-fg);
}
.btn-primary:hover {
  filter: brightness(1.1);
}
.btn-primary:active {
  filter: brightness(0.95);
}
.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--fg);
}
.btn-secondary:hover {
  background: var(--surface-2);
}
.btn-ghost {
  background: transparent;
  color: var(--fg);
}
.btn-ghost:hover {
  background: var(--surface-2);
}
.btn-lg {
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
}
.btn-sm {
  min-height: 2.25rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
}
.btn-icon {
  width: 2.75rem;
  padding: 0;
}
.btn-icon svg.i {
  width: 1.25rem;
  height: 1.25rem;
}
/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  height: 4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.25rem 0;
  border-radius: 0.5rem;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.brand img {
  width: 2rem;
  height: 2rem;
  display: block;
}
.brand small {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.nav {
  display: none;
  gap: 0.25rem;
}
@media (min-width: 900px) {
  .nav {
    display: flex;
  }
}
.nav a {
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 150ms,
    color 150ms;
}
.nav a:hover {
  background: var(--surface-2);
  color: var(--fg);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.header-actions .btn-primary {
  margin-left: 0.25rem;
}
@media (max-width: 380px) {
  .header-actions .btn-primary span {
    display: none;
  }
}
.theme-toggle .sun {
  display: none;
}
[data-theme="dark"] .theme-toggle .sun {
  display: block;
}
[data-theme="dark"] .theme-toggle .moon {
  display: none;
}

/* ---------- footer ---------- */

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
}
.site-footer .top {
  display: grid;
  gap: 2rem;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .site-footer .top {
    grid-template-columns: minmax(0, 1.4fr) auto auto;
    gap: 4rem;
  }
}
.site-footer .about p {
  max-width: 24rem;
  margin-top: 0.875rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.site-footer h2 {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  letter-spacing: 0;
}
.site-footer nav ul {
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}
.site-footer a {
  text-decoration: none;
}
.site-footer a:hover {
  color: var(--fg);
}
.site-footer .bottom {
  border-top: 1px solid var(--border);
}
.site-footer .bottom .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.75rem;
}
.site-footer .bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

/* keep the dark app tile visible on the dark page */
[data-theme="dark"] .brand img {
  filter: drop-shadow(0 0 0.6px rgba(255, 255, 255, 0.55));
}
/* partial:chrome:end */

.muted {
  color: var(--muted);
}

.text-gradient {
  background-image: linear-gradient(90deg, var(--brand-teal), var(--brand-blue) 45%, var(--brand-violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}


.link {
  color: var(--accent-ink);
  font-weight: 500;
  text-decoration: none;
}
.link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.125rem 0.625rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}
.chip-accent {
  border-color: color-mix(in oklab, var(--accent) 30%, transparent);
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  color: var(--accent-ink);
}
.pro-tag {
  display: inline-block;
  padding: 0 0.375rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  color: var(--accent-ink);
  font-size: 0.625rem;
  font-weight: 600;
  line-height: 1.6;
  vertical-align: 0.15em;
}

.card {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(60% 55% at 30% 0%, color-mix(in oklab, var(--brand-teal) 16%, transparent), transparent 70%);
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
  padding-top: 3rem;
  padding-bottom: 3.5rem;
}
@media (min-width: 1024px) {
  .hero .container {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    padding-top: 4.5rem;
    padding-bottom: 3.5rem;
  }
}
.hero-copy > * + * {
  margin-top: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.hero .lead {
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}
@media (min-width: 640px) {
  .hero .lead {
    font-size: 1.125rem;
  }
}
.story > * + * {
  margin-top: 1.25rem;
}
/* Hero stories: every slide sits in the same grid cell, so the height never jumps. */
.slides {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}
.slides > .slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
  pointer-events: none;
}
.slides > .slide.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.hero-copy .lead-tail {
  margin-top: 0.75rem;
  color: var(--fg);
}
.story-dots {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.75rem;
  margin-left: -0.25rem;
}
.story-dots button {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.story-dots i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--border);
  transition:
    width 0.3s var(--ease),
    background 0.3s var(--ease);
}
.story-dots button[aria-current="true"] i {
  width: 1.5rem;
  background: var(--accent);
}
.story-dots button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  border-radius: 999px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.5rem;
}
.dl-main {
  display: grid;
  gap: 0.375rem;
}
.dl-meta {
  font-size: 0.8125rem;
  color: var(--muted);
}
.others {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.9;
}
.others ul {
  display: inline;
}
.others li {
  display: inline;
}
.others li:not(:last-child)::after {
  content: "·";
  margin-left: 0.5rem;
  margin-right: 0.25rem;
  color: var(--muted);
}
.soon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.soon svg.i {
  color: var(--accent-ink);
}

/* Winnow on the web: site.js sets html[data-web] to "yes" when this browser can run /app/
   (a folder picker on a computer). Without JS, or "no", the quiet note shows instead. */
html[data-web="yes"] .web-no,
html:not([data-web="yes"]) .web-yes {
  display: none !important;
}
.web-note,
.web-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.web-note svg.i,
.web-line svg.i {
  flex: none;
  color: var(--accent-ink);
}
.web-line {
  justify-content: center;
  margin-top: 1.25rem;
  text-align: center;
}

/* ---------- app mock ---------- */

.mock {
  --tile-r: 6px;
  position: relative;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  font-size: 0.6875rem;
  user-select: none;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.mock-bar .dots {
  display: flex;
  gap: 5px;
}
.mock-bar .dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--muted) 35%, transparent);
}
.mock-bar .title {
  font-weight: 600;
  font-size: 0.75rem;
}
.mock-bar .title span {
  font-weight: 400;
  color: var(--muted);
}
.mock-bar .count {
  margin-left: auto;
  color: var(--muted);
}
.mock-tools {
  display: flex;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.mock-tools span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 1.6rem;
  padding: 0 0.55rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  white-space: nowrap;
  color: var(--fg);
}
.mock-tools svg.i {
  width: 0.75rem;
  height: 0.75rem;
}
.mock-tools .k svg.i {
  color: var(--accent-ink);
}
.mock-tools .x svg.i {
  color: var(--bad);
}
.mock-body {
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .mock-body {
    grid-template-columns: 9.5rem 1fr;
  }
}
.mock-side {
  display: none;
  padding: 0.625rem 0.5rem;
  border-right: 1px solid var(--border);
}
@media (min-width: 560px) {
  .mock-side {
    display: block;
  }
}
.mock-side .lbl {
  padding: 0 0.5rem 0.375rem;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.mock-side li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.5rem;
  border-radius: 0.375rem;
  color: var(--muted);
}
.mock-side li.on {
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  color: var(--fg);
}
.mock-side li b {
  margin-left: auto;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.mock-side li.pk b {
  color: var(--accent-ink);
}
.mock-side li.sk b {
  color: var(--bad);
}
.mock-side li.sub {
  padding-left: 1.25rem;
}
.mock-side svg.i {
  width: 0.75rem;
  height: 0.75rem;
}
.mock-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px;
  background: var(--bg);
}
.ph {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--tile-r);
  overflow: hidden;
  background:
    radial-gradient(circle at var(--sx, 65%) var(--sy, 35%), #fff3d6 0 8%, rgba(255, 236, 190, 0.45) 9%, transparent 22%),
    linear-gradient(180deg, var(--s1), var(--s2));
  transition:
    opacity 300ms,
    transform 300ms var(--ease);
}
.ph::after {
  content: "";
  position: absolute;
  left: -25%;
  right: -25%;
  bottom: -38%;
  height: 78%;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--h1), var(--h2));
  transform: rotate(var(--hr, -6deg)) translateX(var(--hx, 0));
}
.ph.cur {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}
.ph.skip {
  opacity: 0.3;
  transform: scale(0.94);
}
.ph .st {
  position: absolute;
  z-index: 1;
  left: 5px;
  bottom: 3px;
  color: var(--gold);
  font-size: 0.5625rem;
  letter-spacing: 1px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.ph .bd {
  position: absolute;
  z-index: 1;
  right: 5px;
  top: 5px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--brand-teal);
  color: #06251c;
}
.ph .bd svg.i {
  width: 10px;
  height: 10px;
  stroke-width: 3;
}
.ph .lb {
  position: absolute;
  z-index: 1;
  right: 5px;
  bottom: 5px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #22c55e;
}
.mock-foot {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.75rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
}
.mock-foot kbd {
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  margin-right: 0.2rem;
  font-size: 0.5625rem;
  border-bottom-width: 1px;
  border-radius: 4px;
}
.mock-toast {
  position: absolute;
  left: 50%;
  bottom: 2.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.55rem 0.45rem 0.75rem;
  border-radius: 0.6rem;
  background: var(--fg);
  color: var(--bg);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  transform: translateX(-50%);
  animation: toast 7s var(--ease) 1.2s infinite both;
}
.mock-toast b {
  padding: 0.15rem 0.45rem;
  border-radius: 0.375rem;
  background: color-mix(in oklab, var(--bg) 16%, transparent);
  font-weight: 600;
}
@keyframes toast {
  0%,
  4% {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
  10%,
  70% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  78%,
  100% {
    opacity: 0;
    transform: translate(-50%, 8px);
  }
}

/* ---------- sections ---------- */

.section {
  padding: 3rem 0;
}
@media (min-width: 1024px) {
  .section {
    padding: 4rem 0;
  }
}
.stats-band {
  padding: 2.5rem 0;
  border-block: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface) 55%, transparent);
}
.section-head {
  max-width: 40rem;
  margin-bottom: 2rem;
}
.section-head h2,
.h2 {
  font-size: 1.5rem;
  line-height: 1.2;
}
@media (min-width: 640px) {
  .section-head h2,
  .h2 {
    font-size: 1.875rem;
  }
}
.section-head p {
  margin-top: 0.625rem;
  color: var(--muted);
}
.eyebrow,
.section-head .eyebrow {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--accent-ink);
  font-size: 0.875rem;
  font-weight: 500;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
}
@media (min-width: 900px) {
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.stats b {
  display: block;
  margin-bottom: 0.375rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1;
}
.stats span {
  color: var(--muted);
  font-size: 0.875rem;
}

.features {
  display: grid;
  gap: 1.75rem 2rem;
}
@media (min-width: 640px) {
  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.feature {
  display: flex;
  gap: 0.875rem;
}
.ic {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  color: var(--accent-ink);
}
.ic svg.i {
  width: 1.125rem;
  height: 1.125rem;
}
.feature h3 {
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.feature p {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

.two-col {
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3.5rem;
  }
}

.keys {
  border-top: 1px solid var(--border);
}
.keys li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.keys .k {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.75rem;
}
p kbd {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  font-size: 0.6875rem;
  vertical-align: 0.05em;
}

.note {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.steps {
  display: grid;
  gap: 1.5rem;
}
.steps li {
  display: flex;
  gap: 0.875rem;
}
.num {
  display: grid;
  place-items: center;
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent-solid);
  color: var(--accent-fg);
  font-size: 0.875rem;
  font-weight: 600;
}
.steps h3 {
  font-size: 1rem;
  letter-spacing: -0.01em;
}
.steps p {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.55;
}

/* privacy */
.privacy {
  display: grid;
  gap: 2rem;
  padding: 1.5rem;
}
@media (min-width: 640px) {
  .privacy {
    padding: 2rem;
  }
}
@media (min-width: 1024px) {
  .privacy {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 3rem;
    padding: 2.5rem;
  }
}
.privacy .lead {
  margin-top: 0.75rem;
  color: var(--muted);
}
.promises {
  display: grid;
  gap: 1.125rem;
  margin-top: 1.5rem;
}
.promises li {
  display: flex;
  gap: 0.75rem;
}
.promises li > svg.i {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  color: var(--accent-ink);
}
.promises b {
  display: block;
  font-weight: 500;
}
.promises span {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
}
.signin {
  padding: 1.25rem;
  border-radius: 0.75rem;
  background: var(--surface-2);
  font-size: 0.875rem;
  align-self: start;
}
.signin h3 {
  font-size: 1rem;
}
.signin > p {
  margin-top: 0.375rem;
  color: var(--muted);
}
.signin ul {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.875rem;
}
.signin li {
  display: flex;
  gap: 0.5rem;
}
.signin li svg.i {
  margin-top: 0.15rem;
}
.signin .yes svg.i {
  color: var(--accent-ink);
}
.signin .no svg.i {
  color: var(--muted);
}
.signin .sub {
  margin-top: 1rem;
  font-weight: 600;
}
.signin .foot {
  margin-top: 1rem;
  color: var(--muted);
}

/* plans */
.plans-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.plans-head p {
  margin-top: 0.5rem;
  color: var(--muted);
  max-width: 36rem;
}
.table-wrap {
  overflow-x: auto;
}
table.plans {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.plans th,
.plans td {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.plans thead th {
  font-weight: 500;
}
.plans th.c,
.plans td.c {
  width: 4.5rem;
  text-align: center;
}
@media (min-width: 640px) {
  .plans th.c,
  .plans td.c {
    width: 7rem;
  }
}
.plans thead th.pro {
  color: var(--accent-ink);
}
.plans tbody th {
  font-weight: 400;
  padding-right: 1rem;
}
.plans tbody th small {
  display: block;
  margin-top: 0.125rem;
  color: var(--muted);
  font-size: 0.8125rem;
}
.plans td svg.i {
  display: block;
  margin: 0.15rem auto 0;
}
.plans .y {
  color: var(--accent-ink);
}
.plans .n {
  color: var(--muted);
}
.plans tr.group th {
  padding-top: 1.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* faq */
.faq {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
}
.faq details + details {
  border-top: 1px solid var(--border);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  flex: none;
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 200ms;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 1.25rem 1.125rem;
  margin-top: -0.25rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* downloads */
.platforms {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .platforms {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .platforms {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.platform {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.125rem;
}
.platform.match {
  border-color: color-mix(in oklab, var(--accent) 45%, var(--border));
}
.platform header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}
.platform h3 {
  font-size: 1rem;
}
.platform .tag {
  margin-left: auto;
}
.platform p {
  color: var(--muted);
  font-size: 0.875rem;
}
.platform .btns {
  display: grid;
  gap: 0.5rem;
  margin-top: auto;
}
.platform .btn {
  width: 100%;
}
.platform .btns .chip {
  justify-self: start;
}
.platform.soon-card {
  border-style: dashed;
  background: transparent;
}

.closing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem 1.5rem;
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  border-radius: 1rem;
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  text-align: center;
}
.closing p {
  color: var(--muted);
}

/* share links under the closing card (the same apps and ?s= tags as sdev.in's share menu) */
.share {
  margin-top: 2rem;
  text-align: center;
}
.share-title {
  font-size: 1.125rem;
  font-weight: 650;
}
.share-lead {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.share-apps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.share-app {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
}
.share-app:hover,
.share-app:focus-visible {
  background: var(--surface-2);
}
.share-app svg.app-ic {
  fill: currentColor;
  stroke: none;
}

/* ---------- motion ---------- */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.fade-up {
  animation: fade-up 0.6s var(--ease) both;
}
.d1 {
  animation-delay: 60ms;
}
.d2 {
  animation-delay: 120ms;
}
.d3 {
  animation-delay: 180ms;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
  .mock-toast {
    animation: none;
  }
}

.ph .st svg.i {
  width: 8px;
  height: 8px;
  fill: currentColor;
  stroke: none;
}

@media (max-width: 479px) {
  .mock-tools span:nth-child(n + 4),
  .mock-foot span:nth-child(n + 5) {
    display: none;
  }
  .hero-actions .btn-ghost {
    display: none;
  }
  .hero-actions {
    gap: 0.5rem;
  }
}

.others li {
  white-space: nowrap;
}

/* Installers not published yet (see DOWNLOADS in site.js) */
a.is-soon {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
}

/* When the main button already opens the browser version (no installer for this system yet),
   hide the second "Open in your browser" button next to it. */
html[data-primary-soon="yes"][data-web="yes"] #web-open {
  display: none;
}

/* sdev's "Say thanks" button, as on sdev.in (its CoffeeFab) */
.thanks-fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 30;
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2c2d46, #365a83);
  box-shadow:
    0 10px 15px -3px rgb(0 0 0 / 0.2),
    0 0 0 1px rgb(255 255 255 / 0.1);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: filter 150ms;
}
.thanks-fab:hover {
  filter: brightness(1.1);
  color: #fff;
}
.thanks-fab svg {
  flex: none;
  fill: #dc9e54;
}
.thanks-fab span {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition:
    max-width 200ms,
    margin 200ms;
}
.thanks-fab:hover span,
.thanks-fab:focus-visible span {
  max-width: 160px;
  margin-left: 8px;
}
@media (min-width: 640px) {
  .thanks-fab {
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom));
  }
}
@media (prefers-reduced-motion: reduce) {
  .thanks-fab span {
    transition: none;
  }
}
@media print {
  .thanks-fab {
    display: none;
  }
}
