/* Plainnote.io — tokens lifted from the app (app/styles.css) */
:root {
  --bg: #ffffff;
  --tint: #f7f7f5;          /* section tint, between app bg and sidebar */
  --sidebar-bg: #f1f1ef;
  --text: #161616;
  --text-soft: #4a4a4a;
  --muted: #8f8f8b;
  --border: #e6e6e2;
  --border-soft: #efefec;
  --pill: #e9e9e5;
  --code-bg: #f5f5f2;
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
p a, footer a { border-bottom: 1px solid var(--border); }
p a:hover, footer a:hover { border-bottom-color: var(--muted); }

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

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  background: var(--code-bg);
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 1px 5px;
}

/* Buttons */
.btn {
  display: inline-block;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 500;
  background: var(--pill);
  transition: background 0.15s ease;
}
.btn:hover { background: var(--border); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #333; }
.btn-big { padding: 13px 26px; font-size: 17px; }

/* Nav */
nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; }
.brand img { border-radius: 6px; }
.nav-right { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav-right a:not(.btn) { color: var(--text-soft); }
.nav-right a:not(.btn):hover { color: var(--text); }
.gh { display: flex; align-items: center; }

/* Hero */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 72px 28px 0;
  text-align: center;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 58px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.lede {
  max-width: 540px;
  margin: 22px auto 0;
  font-size: 19px;
  color: var(--text-soft);
}
.hero-actions { margin-top: 32px; }

/* Screenshots */
.shot {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(22, 22, 22, 0.18);
  background: var(--bg);
}
.shot-hero { margin-top: 56px; }

/* Trust strip */
.trust {
  background: var(--tint);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  margin-top: 96px;
}
.trust ul {
  list-style: none;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 64px 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.trust svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 14px;
}
.trust h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.trust p { font-size: 14.5px; color: var(--text-soft); line-height: 1.55; }

/* Download */
.download {
  text-align: center;
  padding: 104px 28px 96px;
}
.download h2 { font-size: 34px; letter-spacing: -0.015em; }
.download-sub { color: var(--text-soft); margin: 10px 0 28px; }
.download-version { color: var(--muted); font-size: 14px; margin-top: 14px; }
.gatekeeper {
  max-width: 440px;
  margin: 26px auto 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

/* Footer */
footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}
footer img { border-radius: 5px; opacity: 0.9; }
footer .dot { color: var(--border); }

/* Responsive */
@media (max-width: 860px) {
  .trust ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .trust ul { grid-template-columns: 1fr; }
}
