/* SwipeStack site. One stylesheet, no scripts, system fonts: nothing is loaded from anywhere else. */

:root {
  color-scheme: light dark;
  --indigo: #2f2fb0;
  --violet: #6b38d8;
  --teal: #2fb29f;
  --green: #34c759;
  --red: #ff3b30;
  --ink: #16162b;
  --muted: #5a5a75;
  --bg: #fbfbfe;
  --card: #ffffff;
  --line: #e4e4f0;
  --link: #3d35c9;
  --radius: 20px;
  --measure: 44rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f2f2fa;
    --muted: #a8a8c6;
    --bg: #0e0e1b;
    --card: #17172c;
    --line: #2a2a47;
    --link: #a99dff;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, system-ui, sans-serif;
}

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

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--card); padding: 0.5rem 0.75rem; border-radius: 8px; z-index: 10; }

.wrap { width: min(100% - 2.5rem, 62rem); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, var(--measure)); margin-inline: auto; }

/* ---------- Header ---------- */

.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: inherit; text-decoration: none; font-weight: 700; letter-spacing: -0.01em; }
.brand img { width: 2.1rem; height: 2.1rem; border-radius: 22%; }
.site-nav { display: flex; gap: 1.25rem; font-size: 0.95rem; }
.site-nav a { color: inherit; text-decoration: none; opacity: 0.85; }
.site-nav a:hover, .site-nav a[aria-current="page"] { opacity: 1; text-decoration: underline; }

/* ---------- Hero ---------- */

.hero {
  color: #fff;
  background: radial-gradient(120% 90% at 85% 0%, #8447ee 0%, rgba(132, 71, 238, 0) 60%),
              linear-gradient(160deg, var(--indigo), #4a2fc4 55%, var(--violet));
  --link: #fff;
}
.hero .site-nav a, .hero .brand { color: #fff; }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-block: 3rem 5rem; text-align: center; justify-items: center; }
.hero-icon { width: 7.5rem; height: 7.5rem; border-radius: 22%; box-shadow: 0 18px 40px rgba(10, 6, 60, 0.45); }
.hero h1 { margin: 0; font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.08; letter-spacing: -0.025em; max-width: 16ch; }
.hero p { margin: 0; max-width: 34rem; font-size: 1.15rem; opacity: 0.92; }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.button {
  display: inline-block; padding: 0.8rem 1.4rem; border-radius: 999px; font-weight: 600; text-decoration: none;
  background: #fff; color: #2a2599; border: 2px solid #fff;
}
.button.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.button:hover { filter: brightness(0.96); }
.fineprint { font-size: 0.9rem; opacity: 0.8; }

/* ---------- Sections ---------- */

section { padding-block: 3.5rem; }
section + section { border-top: 1px solid var(--line); }
h2 { margin: 0 0 0.6rem; font-size: clamp(1.5rem, 3.6vw, 2.1rem); line-height: 1.2; letter-spacing: -0.02em; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 40rem; margin: 0 0 2rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.card h3 { margin: 0.9rem 0 0.35rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }
.swipe { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.5rem; font-weight: 700; color: #fff; }
.swipe.delete { background: var(--red); }
.swipe.keep { background: var(--green); }
.swipe.archive { background: #5b4fe6; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; max-width: 40rem; }
.checks li { position: relative; padding-left: 2rem; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.35rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--green); }
.checks li::after { content: ""; position: absolute; left: 0.4rem; top: 0.52rem; width: 0.35rem; height: 0.6rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(40deg); }

.pill-list { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 1.2rem 0 0; list-style: none; }
.pill-list li { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 0.3rem 0.85rem; font-size: 0.95rem; color: var(--muted); }

.private { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--teal) 9%, transparent)); }

/* ---------- Document pages (privacy policy, support) ---------- */

.doc { padding-block: 2.5rem 4rem; }
.doc h1 { margin: 0 0 0.4rem; font-size: clamp(1.9rem, 5vw, 2.6rem); letter-spacing: -0.025em; line-height: 1.12; }
.doc h2 { margin-top: 2.4rem; font-size: 1.4rem; }
.doc h3 { margin: 1.6rem 0 0.3rem; font-size: 1.1rem; }
.doc p, .doc li { max-width: var(--measure); }
.doc ul { padding-left: 1.3rem; }
.doc li + li { margin-top: 0.4rem; }
.updated { color: var(--muted); margin: 0 0 1.6rem; }
.summary { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: 14px; padding: 1.1rem 1.3rem; margin: 1.6rem 0 0; }
.summary p { margin: 0; }
.summary p + p { margin-top: 0.6rem; }
.toc { color: var(--muted); font-size: 0.95rem; margin: 1.6rem 0 0; }
.toc a { white-space: nowrap; }

dl.faq dt { margin-top: 1.5rem; font-weight: 650; }
dl.faq dd { margin: 0.3rem 0 0; color: var(--muted); max-width: var(--measure); }

.contact-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin: 1.6rem 0 0; max-width: var(--measure); }
.contact-box p { margin: 0; }
.contact-box p + p { margin-top: 0.6rem; }
.contact-box .email { font-size: 1.25rem; font-weight: 650; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding-block: 2rem 3rem; color: var(--muted); font-size: 0.95rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.site-footer a { color: inherit; }

@media (max-width: 34rem) {
  .site-nav { gap: 0.9rem; font-size: 0.9rem; }
  .hero-inner { padding-block: 2rem 3.5rem; }
  section { padding-block: 2.5rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .button { transition: filter 0.15s ease; }
}
