/* Stayla site. One stylesheet for every page. No scripts, no external files. */

:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --surface: #15181d;
  --line: #2a3039;
  --text: #f2f4f7;
  --muted: #9aa3af;
  --accent: #5cf2c8;
  --radius: 20px;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f6f7f9;
    --surface: #ffffff;
    --line: #c9cfd8;
    --text: #0b0d10;
    --muted: #5b6472;
    --accent: #0a7a60;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow-wrap: break-word;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  text-wrap: balance;
}

p,
ul,
ol {
  margin: 0 0 14px;
}

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

/* Skip link: off screen until it has focus. */
.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.skip:focus {
  top: 16px;
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: 720px; /* 680px of text plus the side padding */
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 16px;
  padding-bottom: 16px;
}

/* The wordmark file has wide empty margins. The link crops them away. */
.wordmark {
  display: block;
  width: 118px;
  height: 30px;
  overflow: hidden;
  flex: none;
}

.wordmark img {
  width: 180px;
  height: 60px;
  max-width: none;
  margin: -15px 0 0 -32px;
}

.site-nav {
  display: flex;
  gap: 4px 18px;
  flex-wrap: wrap;
}

.site-nav a,
.site-footer a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  padding: 6px 0;
}

.site-nav a:hover,
.site-footer a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
}

/* Landing page */
.hero .wrap {
  display: grid;
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 56px;
}

.hero h1 {
  font-size: clamp(2rem, 6.4vw, 3.5rem);
  letter-spacing: -0.02em;
}

.lead {
  margin: 18px 0 0;
  max-width: 34em;
  font-size: 1.1rem;
  color: var(--muted);
}

.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 600;
}

.soon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.facts {
  margin: 14px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.app-icon {
  width: 112px;
  height: 112px;
  border-radius: 22.5%;
  border: 1px solid var(--line);
}

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

.section .wrap {
  padding-top: 56px;
  padding-bottom: 56px;
}

.section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}

.section p {
  max-width: 38em;
}

.cards,
.steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.steps {
  counter-reset: step;
  margin-bottom: 24px;
}

.steps .card::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 38em;
}

.plain-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.plain-list li:first-child {
  border-top: 1px solid var(--line);
}

@media (min-width: 600px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 800px) {
  .hero .wrap {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 56px;
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .app-icon {
    width: 220px;
    height: 220px;
  }

  .section .wrap {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1040px) {
  .cards {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Text pages: privacy, terms, support, delete account */
.doc {
  padding-top: 40px;
  padding-bottom: 64px;
}

.doc h1 {
  font-size: clamp(1.75rem, 5vw, 2.25rem);
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.doc h2 {
  font-size: 1.2rem;
  margin: 36px 0 10px;
}

.doc ul,
.doc ol {
  padding-inline-start: 22px;
}

.doc li {
  margin-bottom: 6px;
}

.updated {
  color: var(--muted);
  font-size: 15px;
}

.draft {
  margin: 20px 0 24px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--accent);
  border-radius: 12px;
  font-weight: 700;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

.site-footer .wrap {
  padding-top: 32px;
  padding-bottom: 40px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-bottom: 16px;
}

.site-footer p {
  margin: 0 0 4px;
}
