/* Acriority website. Brand from the app: seed indigo #5B6CFF, the celebration gold, the icon's
   near-black #111215. System fonts only — nothing is fetched from a third party. */
:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --text: #16171c;
  --muted: #555866;
  --line: #e3e4ec;
  --accent: #4152e6;
  --accent-text: #ffffff;
  --accent-soft: #eceeff;
  --gold: #8a6100;
  --danger: #b3261e;
  --ok: #1b7a3e;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111215;
    --surface: #1a1b21;
    --text: #ececf1;
    --muted: #a6a8b6;
    --line: #2b2d36;
    --accent: #8b97ff;
    --accent-text: #0e1030;
    --accent-soft: #23264a;
    --gold: #f2c14e;
    --danger: #f2b8b5;
    --ok: #7dd99b;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, h1:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
h1:focus { outline: none; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 1; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.wrap.wide { max-width: 980px; }

header.site {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 650; letter-spacing: .02em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
nav.site { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); text-decoration: underline; }

main { padding: 40px 0 64px; }
h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.01em; }
h2 { font-size: 22px; margin: 36px 0 8px; }
h3 { font-size: 18px; margin: 24px 0 6px; }
p, ul, ol { margin: 0 0 14px; }
li { margin-bottom: 6px; }
.lede { font-size: 19px; color: var(--muted); }
.meta { color: var(--muted); font-size: 15px; }
.note {
  background: var(--accent-soft); border-radius: 12px; padding: 14px 16px; margin: 20px 0;
}
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px;
}

/* landing */
.hero { padding: 24px 0 8px; text-align: center; }
.hero .logo { width: min(260px, 70vw); height: auto; margin: 8px auto 20px; display: block; }
.hero .logo.dark { display: none; }
@media (prefers-color-scheme: dark) {
  .hero .logo.light { display: none; }
  .hero .logo.dark { display: block; }
}
.hero h1 { font-size: clamp(30px, 6vw, 48px); }
.hero .lede { max-width: 620px; margin: 0 auto 8px; }
.status { display: inline-block; margin-top: 18px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.loop { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 40px 0 8px; }
.loop .card h3 { margin-top: 0; }
.loop .step { color: var(--gold); font-weight: 650; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }

/* forms */
form .field { margin-bottom: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input[type="password"], input[type="text"] {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.hint { color: var(--muted); font-size: 15px; margin-top: 4px; }
button {
  font: inherit; font-weight: 650; border: 0; border-radius: 999px; padding: 12px 22px;
  background: var(--accent); color: var(--accent-text); cursor: pointer; min-height: 48px;
}
button:disabled { opacity: .6; cursor: progress; }
.error { color: var(--danger); min-height: 1.6em; }
.success { color: var(--ok); }

footer.site { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 15px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  a, button { transition: color .15s, opacity .15s; }
}
.card > .first, .card > h2:first-child { margin-top: 0; }
