/* Swipe Photos — support & privacy.
   Tokens mirror the app's DesignSystem.swift: a monochrome "ink" accent with
   jade for keep and coral for delete, on the same F3F4F7 / 0C0D12 surfaces. */

:root {
  color-scheme: light dark;
  --surface: #f3f4f7;
  --raised: #ffffff;
  --ink: 0 0 0;
  --keep: #12b26e;
  --discard: #f0453b;
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 8px 24px -8px rgb(0 0 0 / .10);
  --shadow-lift: 0 2px 4px rgb(0 0 0 / .05), 0 20px 44px -16px rgb(0 0 0 / .18);
  --radius-card: 28px;
  --radius-tile: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0c0d12;
    --raised: #16171d;
    --ink: 255 255 255;
    --keep: #2ed689;
    --discard: #ff5f56;
    --shadow: 0 1px 2px rgb(0 0 0 / .5);
    --shadow-lift: 0 2px 4px rgb(0 0 0 / .5), 0 20px 44px -16px rgb(0 0 0 / .6);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  padding: 0 22px 96px;
  background: var(--surface);
  color: rgb(var(--ink));
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
               "PingFang SC", "Hiragino Sans GB", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: -0.003em;
}

.wrap { max-width: 680px; margin: 0 auto; }

/* ---------- Language switch ---------- */

.langbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: flex-end; gap: 4px;
  padding: 14px 0 10px;
  background: linear-gradient(var(--surface) 62%, rgb(var(--ink) / 0));
}
.langbar button {
  appearance: none; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgb(var(--ink) / .10);
  background: rgb(var(--ink) / .03);
  color: rgb(var(--ink) / .55);
  transition: background .18s, color .18s, border-color .18s;
}
.langbar button:hover { color: rgb(var(--ink) / .8); }
.langbar button[aria-pressed="true"] {
  background: rgb(var(--ink));
  border-color: rgb(var(--ink));
  color: var(--surface);
}
/* No JS, no data-lang: both languages show. With JS, one at a time. */
html[data-lang="zh"] [lang="en"],
html[data-lang="en"] [lang="zh"] { display: none; }

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

.hero { padding: 30px 0 8px; }
.hero img.icon {
  width: 84px; height: 84px; border-radius: 22.4%;
  display: block; box-shadow: var(--shadow-lift);
  /* The icon is a black square; on the dark surface its shadow vanishes, so it
     needs an edge of its own to read as an object. */
  outline: 1px solid rgb(var(--ink) / .14); outline-offset: -1px;
}
.hero h1 {
  margin: 26px 0 10px;
  font-size: 42px; line-height: 1.1; font-weight: 700; letter-spacing: -0.025em;
}
.hero .tagline {
  margin: 0; max-width: 30em;
  font-size: 18px; color: rgb(var(--ink) / .55);
}

/* ---------- Gesture legend ---------- */

.gestures {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
  margin: 34px 0 8px; padding: 0; list-style: none;
}
.gestures li {
  background: var(--raised); border-radius: var(--radius-tile);
  padding: 18px 14px; text-align: center; box-shadow: var(--shadow);
}
.gestures .glyph {
  display: block; font-size: 26px; line-height: 1; font-weight: 700;
  margin-bottom: 10px;
}
.gestures .up .glyph { color: var(--discard); }
.gestures .down .glyph { color: var(--keep); }
.gestures .side .glyph { color: rgb(var(--ink) / .35); }
.gestures .what { display: block; font-size: 15px; font-weight: 600; }
.gestures .how { display: block; font-size: 13px; color: rgb(var(--ink) / .45); }

/* ---------- Structure ---------- */

.eyebrow {
  margin: 60px 0 16px;
  font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: rgb(var(--ink) / .35);
}
h2 { font-size: 25px; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 14px; }
h3 { font-size: 17px; font-weight: 650; margin: 0 0 6px; }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
a { color: rgb(var(--ink)); text-decoration-color: rgb(var(--ink) / .28); text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { text-decoration-color: rgb(var(--ink)); }
strong { font-weight: 650; }

.card {
  background: var(--raised); border-radius: var(--radius-card);
  padding: 26px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 12px; }

/* The one-sentence privacy claim, sized like a claim. */
.claim {
  background: var(--raised); border-radius: var(--radius-card);
  padding: 30px 28px; box-shadow: var(--shadow-lift);
  border-top: 3px solid var(--keep);
}
.claim p {
  font-size: 21px; line-height: 1.45; font-weight: 600; letter-spacing: -0.015em;
}
.claim .sub { margin-top: 14px; font-size: 15px; font-weight: 400; color: rgb(var(--ink) / .55); }

/* Contact block */
.contact { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.contact .mail {
  font-size: 19px; font-weight: 650; letter-spacing: -0.01em;
  text-decoration: none; padding: 12px 20px; border-radius: 999px;
  background: rgb(var(--ink)); color: var(--surface);
}
.contact .mail:hover { opacity: .85; }
.contact .hint { font-size: 14px; color: rgb(var(--ink) / .45); flex: 1 1 14em; margin: 0; }

/* FAQ accordions */
details {
  background: var(--raised); border-radius: var(--radius-tile);
  box-shadow: var(--shadow); margin-bottom: 10px; overflow: hidden;
}
details summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-size: 16px; font-weight: 650; letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 12px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; margin-left: auto; font-size: 20px; font-weight: 500;
  color: rgb(var(--ink) / .3); transition: transform .2s;
}
details[open] summary::after { content: "−"; }
details .body { padding: 0 22px 20px; color: rgb(var(--ink) / .72); font-size: 15.5px; }

/* Definition rows for "what is stored" */
.rows { margin: 0; padding: 0; list-style: none; }
.rows li { padding: 16px 0; border-top: 1px solid rgb(var(--ink) / .08); }
.rows li:first-child { border-top: none; padding-top: 0; }
.rows li:last-child { padding-bottom: 0; }
.rows .k { display: block; font-size: 15px; font-weight: 650; }
.rows .v { display: block; font-size: 14.5px; color: rgb(var(--ink) / .55); }

/* Plain bullet list inside cards */
.ticks { margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 15.5px; }
.ticks li:last-child { margin-bottom: 0; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--keep);
}
.ticks.no li::before { background: var(--discard); }

footer {
  margin-top: 72px; padding-top: 26px; border-top: 1px solid rgb(var(--ink) / .08);
  font-size: 13px; color: rgb(var(--ink) / .35);
}
footer p { margin: 0 0 5px; }
footer .links { margin-bottom: 14px; }
footer .links a { color: rgb(var(--ink) / .55); text-decoration-color: rgb(var(--ink) / .2); }
footer a { color: inherit; }

@media (max-width: 460px) {
  .hero h1 { font-size: 34px; }
  .gestures { grid-template-columns: 1fr; }
  .gestures li { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 18px; }
  .gestures .glyph { margin: 0; }
  .card, .claim { padding: 22px; }
}
