/* AI Cleaner support site — shared styles.
   Palette follows the app: purple accent on a dark-first UI, with the
   storage-card gradient reused on the header. Light and dark are
   both first-class, because the app itself follows the system appearance. */

:root {
  --blue: #7B4DFF;
  --hero-top: #8A5CFF;
  --hero-bottom: #4B1FC4;
  --bg: #ffffff;
  --bg-soft: #f4f6fa;
  --text: #15181e;
  --text-dim: #5b6371;
  --border: #e3e7ee;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #A98BFF;
    --hero-top: #5A2FD6;
    --hero-bottom: #23105E;
    --bg: #0A0D13;
    --bg-soft: #131821;
    --text: #eef1f6;
    --text-dim: #99a3b4;
    --border: #222935;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 22px; }

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

header {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(160deg, var(--hero-top), var(--hero-bottom));
}

.head-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 30px 22px 24px;
  max-width: 720px;
  margin: 0 auto;
}

.head-inner img {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  flex: none;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.22);
}

.head-inner h1 {
  font-size: 22px;
  margin: 0;
  letter-spacing: -0.3px;
  color: #fff;
}

.head-inner p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14.5px;
}

nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  padding: 0 22px 18px;
  max-width: 720px;
  margin: 0 auto;
}

nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  padding: 7px 13px;
  border-radius: 999px;
}

nav a:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

nav a[aria-current="page"] {
  background: #fff;
  color: var(--hero-bottom);
  font-weight: 600;
}

/* ---- Content ---- */

main { padding: 40px 0 72px; }

h2 {
  font-size: 25px;
  letter-spacing: -0.4px;
  margin: 44px 0 12px;
  line-height: 1.28;
}

h2:first-child { margin-top: 0; }

h3 { font-size: 18px; margin: 30px 0 8px; }

p, li { color: var(--text); }

a { color: var(--blue); }

ul { padding-left: 22px; }
li { margin: 7px 0; }

.lede { font-size: 19px; color: var(--text-dim); }

.meta {
  font-size: 14.5px;
  color: var(--text-dim);
  padding: 12px 0 0;
}

/* Callout for the things people actually need to notice — the offline
   guarantee, and that there is no cloud copy of their documents. */
.note {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 22px 0;
}

.note p:first-child { margin-top: 0; }
.note p:last-child { margin-bottom: 0; }

/* FAQ */
details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blue); font-weight: 400; font-size: 21px; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details > *:not(summary) { margin-bottom: 0; }
details p:first-of-type { margin-top: 12px; }

/* Two-column feature lists collapse on phones */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
@media (max-width: 560px) { .cols { grid-template-columns: 1fr; } }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15.5px;
  display: block;
  overflow-x: auto;
}

th, td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th { font-weight: 600; background: var(--bg-soft); }

.mail {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
  margin: 6px 0;
}

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

footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 44px;
  color: var(--text-dim);
  font-size: 14.5px;
}

footer a { color: var(--text-dim); }
footer p { margin: 5px 0; }
