/* Resift marketing site — single shared stylesheet.
   No web fonts, no external requests, no cookies. */

:root {
  --accent: #208aef;
  --accent-dark: #1673cc;
  --bg: #ffffff;
  --bg-alt: #f2f7fc;
  --text: #16222e;
  --text-soft: #51626f;
  --border: #dde6ee;
  --card: #ffffff;
  --max: 68rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1319;
    --bg-alt: #131c25;
    --text: #e8eef4;
    --text-soft: #9db0c0;
    --border: #24313e;
    --card: #16202a;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 3.6rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo .mark {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 0.45rem;
  background: linear-gradient(135deg, var(--accent), #6cc4ff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
}

nav.main {
  display: flex;
  gap: 1.1rem;
  margin-left: auto;
  align-items: center;
  flex-wrap: wrap;
}
nav.main a { color: var(--text-soft); font-size: 0.95rem; }
nav.main a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
  border-radius: 0.6rem;
}
.btn:hover { background: var(--accent-dark); text-decoration: none; }
.btn.big { padding: 0.8rem 1.6rem; font-size: 1.05rem; }
.btn.ghost {
  background: transparent;
  color: var(--accent) !important;
  border: 1px solid var(--border);
}
.btn.ghost:hover { border-color: var(--accent); background: transparent; }

/* ---------- Hero ---------- */

.hero {
  text-align: center;
  padding: 5rem 0 3.5rem;
}
.hero h1 {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.hero h1 .grad {
  background: linear-gradient(90deg, var(--accent), #6cc4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.sub {
  font-size: 1.2rem;
  color: var(--text-soft);
  max-width: 38rem;
  margin: 0 auto 2rem;
}
.hero .cta { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 1rem; font-size: 0.85rem; color: var(--text-soft); }

/* ---------- Swipe legend ---------- */

.swipes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem;
  padding: 2.5rem 0;
}
.swipe {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 1.2rem;
  text-align: center;
}
.swipe .dir { font-size: 1.6rem; }
.swipe h3 { margin: 0.4rem 0 0.2rem; font-size: 1.05rem; }
.swipe p { margin: 0; font-size: 0.9rem; color: var(--text-soft); }

/* ---------- Feature sections ---------- */

section.features { padding: 2rem 0 3rem; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.2rem;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}
.feature .icon { font-size: 1.7rem; }
.feature h3 { margin: 0.6rem 0 0.4rem; font-size: 1.1rem; }
.feature p { margin: 0; color: var(--text-soft); font-size: 0.95rem; }

.privacy-banner {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 3rem 0;
}
.privacy-banner h2 { margin-top: 0; }
.privacy-banner p { max-width: 42rem; margin: 0.5rem auto; color: var(--text-soft); }

.section-title { text-align: center; margin: 0 0 2rem; font-size: 1.9rem; letter-spacing: -0.01em; }

/* ---------- Prose pages (legal, changelog, press) ---------- */

main.prose {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}
main.prose h1 { font-size: 2rem; letter-spacing: -0.01em; }
main.prose h2 { margin-top: 2.2rem; font-size: 1.35rem; }
main.prose h3 { margin-top: 1.6rem; font-size: 1.1rem; }
main.prose .meta { color: var(--text-soft); font-size: 0.9rem; }
main.prose table { border-collapse: collapse; width: 100%; }
main.prose td, main.prose th {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
  vertical-align: top;
}
main.prose code {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 0.3rem;
  padding: 0.1rem 0.35rem;
  font-size: 0.9em;
}
.placeholder {
  background: #fff3cd;
  color: #7a5b00;
  border-radius: 0.3rem;
  padding: 0 0.3rem;
  font-weight: 600;
}
@media (prefers-color-scheme: dark) {
  .placeholder { background: #4d3f0a; color: #ffd75e; }
}

.callout {
  background: var(--bg-alt);
  border-left: 4px solid var(--accent);
  border-radius: 0.5rem;
  padding: 0.9rem 1.1rem;
  margin: 1.4rem 0;
}

/* ---------- Changelog ---------- */

.release { border-left: 2px solid var(--border); padding-left: 1.3rem; margin: 2rem 0; position: relative; }
.release::before {
  content: "";
  position: absolute;
  left: -0.42rem;
  top: 0.5rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent);
}
.release h2 { margin: 0; font-size: 1.2rem; }
.release .date { color: var(--text-soft); font-size: 0.85rem; }

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  margin-top: 3rem;
  padding: 2.5rem 0 2rem;
  font-size: 0.92rem;
}
footer.site .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1.5rem;
}
footer.site h4 { margin: 0 0 0.6rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-soft); }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin: 0.35rem 0; }
footer.site a { color: var(--text-soft); }
footer.site a:hover { color: var(--text); }
footer.site .fine {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Utilities ---------- */

.centered { text-align: center; }
.section-note {
  text-align: center;
  color: var(--text-soft);
  max-width: 40rem;
  margin: 0 auto;
}
