/* slicknote.app: the brand (SLICKNOTE_DESIGN.md): Paper, Charcoal, Slicknote Blue #2563EB, Geist Mono,
   self-hosted so the site loads nothing from third parties. */
@font-face { font-family: 'Geist Mono'; src: url('/fonts/GeistMono_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/GeistMono_600SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('/fonts/GeistMono_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --bg: #F8FAFC; --card: #FFFFFF; --text: #0F1115; --secondary: #5B6472; --line: #E5EAF0;
  --blue: #2563EB; --blue-text: #1D4ED8; --tint: #EBF1FD; --todo-bg: #FEF7DC; --todo-text: #4A3A0B;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1423; --card: #16213A; --text: #EEF2F7; --secondary: #98A2B3; --line: #223049;
    --blue-text: #7AA5F8; --tint: #172B52; --todo-bg: #2E2610; --todo-text: #E8D59A;
    color-scheme: dark;
  }
  :root:not([data-theme="light"]) .wm-light { display: none; }
  :root:not([data-theme="light"]) .wm-dark { display: inline; }
}
:root[data-theme="dark"] {
  --bg: #0B1423; --card: #16213A; --text: #EEF2F7; --secondary: #98A2B3; --line: #223049;
  --blue-text: #7AA5F8; --tint: #172B52; --todo-bg: #2E2610; --todo-text: #E8D59A;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 16px/1.6 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

header.site { padding: 24px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; line-height: 0; }
.brand img { height: 26px; width: auto; }
.wm-dark { display: none; }
nav.site { display: flex; gap: 20px; font-size: 14px; }
nav.site a { color: var(--secondary); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 700; }
.hero h1 .squiggle { color: var(--blue-text); white-space: nowrap; position: relative; }
.hero h1 .squiggle svg { position: absolute; left: 0; bottom: -0.28em; width: 100%; height: 0.3em; }
.lede { font-size: 18px; color: var(--secondary); margin-top: 24px; max-width: 34ch; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 24px;
  font-weight: 600; font-size: 15px; text-decoration: none; background: var(--blue); color: #fff;
}
.pill.soft { background: var(--tint); color: var(--blue-text); }
.note-small { font-size: 13px; color: var(--secondary); margin-top: 14px; }

.phones { position: relative; height: 560px; }
.phone {
  position: absolute; width: 58%; border-radius: 34px; overflow: hidden; background: var(--card);
  box-shadow: 0 24px 60px -24px rgba(15, 17, 21, 0.35), 0 0 0 1px var(--line);
}
.phone img { display: block; width: 100%; height: auto; }
.phone.one { left: 0; top: 24px; transform: rotate(-5deg); }
.phone.two { right: 0; top: 0; transform: rotate(4deg); }

section.features { padding-top: 24px; padding-bottom: 72px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; }
.card h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.card p { font-size: 14px; color: var(--secondary); margin-top: 8px; }
.card .dot { width: 10px; height: 10px; border-radius: 5px; background: var(--blue); margin-bottom: 16px; }

section.pro { padding-bottom: 72px; }
.pro .card { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; background: var(--tint); border-color: transparent; }
.pro h2 { font-size: 22px; letter-spacing: -0.02em; }
.pro p { color: var(--secondary); font-size: 15px; margin-top: 6px; max-width: 52ch; }

/* Documents: Privacy, Terms, Support, Delete */
main.doc { padding-top: 24px; padding-bottom: 72px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); letter-spacing: -0.03em; line-height: 1.1; }
.doc .updated { color: var(--secondary); font-size: 14px; margin-top: 10px; }
.doc h2 { font-size: 20px; letter-spacing: -0.01em; margin-top: 40px; }
.doc h3 { font-size: 16px; margin-top: 24px; }
.doc p, .doc li { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc .card { margin-top: 24px; }
.todo {
  background: var(--todo-bg); color: var(--todo-text); border-radius: 16px; padding: 16px 18px; margin-top: 24px;
  font-size: 14px;
}
.todo strong { font-weight: 700; }
mark.todo-inline { background: var(--todo-bg); color: var(--todo-text); padding: 0 4px; border-radius: 4px; }
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 40px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 13px;
  background: var(--tint); color: var(--blue-text); font-weight: 700; font-size: 13px; display: grid; place-items: center;
}

footer.site { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 13px; color: var(--secondary); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.site a { color: var(--secondary); }

@media (max-width: 800px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; }
  .phones { margin: 0 auto; width: 100%; }
  .phones { height: 440px; max-width: 420px; }
  .grid { grid-template-columns: 1fr; }
  nav.site { gap: 14px; }
}
@media (max-width: 420px) {
  nav.site .hide-sm { display: none; }
  .phones { height: 360px; }
}
@media (prefers-reduced-motion: no-preference) {
  .phone { transition: transform 0.55s cubic-bezier(.22, 1, .36, 1); }
  .phones:hover .phone.one { transform: rotate(-7deg) translateY(-6px); }
  .phones:hover .phone.two { transform: rotate(6deg) translateY(-6px); }
}

/* Tables in the policy pages (generated by scripts/site/build.ts). */
.table-wrap { overflow-x: auto; margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 14px; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap th { color: var(--secondary); font-weight: 600; }
.apk-note { font-size: 13px; color: var(--secondary); margin-top: 10px; max-width: 46ch; }
.apk-note summary { cursor: pointer; color: var(--blue-text); font-weight: 600; width: fit-content; }
.apk-note ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }
