/* The Stay Notes website (staynotes.app): home, privacy and terms pages, in the extension's "Paper"
   design. The help page keeps its own styles. Fonts are the computer's own, so nothing is downloaded. */
:root {
  --bg: #f2ede2;
  --side: #e9e2d3;
  --surface: #fffcf5;
  --ink: #2a2723;
  --muted: #655e54;
  --line: #e0d8c8;
  --accent: #2a5bb8;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(70, 50, 20, 0.08), 0 10px 28px rgba(70, 50, 20, 0.10);
  --heading: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --ui: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1f1d1a;
    --side: #262320;
    --surface: #2d2a26;
    --ink: #efe8da;
    --muted: #b0a89b;
    --line: #3b3630;
    --accent: #8ab4f8;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px rgba(0, 0, 0, 0.45);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 var(--ui);
}

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  font-family: var(--heading);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Header and footer, shared by every page */
.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 18px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--ink);
  font: 600 21px/1 var(--heading);
  text-decoration: none;
}

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

.top nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 15px;
}

.top nav a {
  color: var(--ink);
  text-decoration: none;
}

.top nav a:hover {
  text-decoration: underline;
}

footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 24px 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin-bottom: 8px;
}

footer a {
  color: var(--muted);
}

/* Buttons */
.button {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--surface);
  font-weight: 600;
  text-decoration: none;
}

.button.quiet {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
}

/* Home page */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 6vw, 56px);
}

.hero p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 19px;
}

.hero .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.hero .small {
  color: var(--muted);
  font-size: 14px;
}

/* A drawn floating note, standing in for a screenshot */
.picture {
  position: relative;
  min-height: 300px;
}

.page-sketch {
  position: absolute;
  inset: 0 40px 50px 0;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.page-sketch i {
  display: block;
  height: 10px;
  margin-bottom: 12px;
  border-radius: 5px;
  background: var(--line);
}

.page-sketch i:nth-child(1) {
  width: 60%;
  height: 16px;
}

.page-sketch i:nth-child(3) {
  width: 85%;
}

.page-sketch i:nth-child(4) {
  width: 70%;
}

.sticky {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 250px;
  overflow: hidden;
  border-radius: 12px;
  background: #fff3a8;
  color: #222;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.08);
  transform: rotate(2deg);
}

.sticky .bar {
  padding: 6px 10px;
  background: #2b2b2b;
  color: #ddd;
  font-size: 12px;
}

.sticky .body {
  padding: 14px 16px 18px;
  font-size: 15px;
  line-height: 1.6;
}

.sticky b {
  display: block;
  margin-bottom: 6px;
  font: 600 19px/1.3 var(--heading);
}

/* Sections */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 24px 56px;
}

.section > h2 {
  margin: 0 0 8px;
  font-size: 32px;
}

.section > p.lead {
  margin: 0 0 28px;
  color: var(--muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.card {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(70, 50, 20, 0.08);
}

.card h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

/* Prices */
.prices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 820px;
}

@media (max-width: 700px) {
  .prices {
    grid-template-columns: 1fr;
  }
}

.price-card h3 {
  margin: 0 0 4px;
  font-size: 24px;
}

.price {
  margin: 0 0 14px;
  font: 600 30px/1.2 var(--heading);
}

.price small {
  color: var(--muted);
  font: 400 15px/1.4 var(--ui);
}

.price-card ul {
  margin: 0;
  padding-left: 20px;
  font-size: 16px;
}

.price-card li + li {
  margin-top: 4px;
}

.price-card.pro {
  border-color: var(--ink);
}

.promise {
  max-width: 820px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 15px;
}

/* Privacy and terms */
.document {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.document h1 {
  margin: 0 0 6px;
  font-size: 40px;
}

.document h2 {
  margin: 34px 0 8px;
  font-size: 24px;
}

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

.document li + li {
  margin-top: 6px;
}

.todo {
  padding: 0 4px;
  border-radius: 4px;
  background: #ffd1dc;
  color: #222;
}
