/* Stints website — colours match the app's default theme (Theme.swift). */
:root {
  --bg: #F5F1E8; --surface: #E9E3D5; --elevated: #FFFDF8;
  --text: #11131C; --muted: #5E6170; --accent: #138A7F; --on-accent: #FFFFFF; --danger: #C62E3A;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11131C; --surface: #252A3D; --elevated: #343A55;
    --text: #F5F1E8; --muted: #A3A6B5; --accent: #2EC4B6; --on-accent: #11131C; --danger: #FF6B6B;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.site { padding: 20px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
nav a { color: var(--muted); text-decoration: none; margin-left: 16px; font-size: 15px; }
nav a:hover { color: var(--text); }

.hero { text-align: center; padding: 48px 0 32px; }
.hero img { width: 120px; height: 120px; border-radius: 27px; box-shadow: 0 12px 32px rgba(17, 19, 28, .25); }
.hero h1 { font-size: clamp(34px, 7vw, 52px); line-height: 1.1; margin: 28px 0 12px; letter-spacing: -0.02em; }
.hero p { color: var(--muted); font-size: 19px; max-width: 34em; margin: 0 auto; }
.badge {
  display: inline-block; margin-top: 28px; padding: 12px 22px; border-radius: 12px;
  background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none;
}

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; padding: 24px 0 48px; }
.feature { background: var(--surface); border-radius: 16px; padding: 20px; }
.feature h2 { font-size: 18px; margin: 10px 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.feature svg { width: 40px; height: 40px; }

main.doc { padding: 16px 0 48px; }
main.doc h1 { font-size: 34px; line-height: 1.15; margin: 16px 0 4px; }
main.doc h2 { font-size: 21px; margin: 32px 0 8px; }
main.doc .updated { color: var(--muted); margin-top: 0; }
main.doc li { margin: 4px 0; }
details { background: var(--surface); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
summary { font-weight: 600; cursor: pointer; }
details p { margin: 10px 0 0; }

footer.site { border-top: 1px solid var(--surface); padding: 24px 0 40px; color: var(--muted); font-size: 14px; }
footer.site a { color: var(--muted); margin-right: 16px; }

/* Auth action page (#69) */
.card { background: var(--elevated); border-radius: 16px; padding: 24px; margin: 24px auto; max-width: 420px; }
.card h1 { font-size: 24px; margin: 0 0 8px; }
.card p { color: var(--muted); }
label { display: block; font-weight: 600; margin: 16px 0 6px; }
input[type=password] {
  width: 100%; padding: 12px; font: inherit; border-radius: 10px;
  border: 1px solid var(--muted); background: var(--bg); color: var(--text);
}
button {
  margin-top: 18px; width: 100%; padding: 13px; font: inherit; font-weight: 600; border: 0; border-radius: 12px;
  background: var(--accent); color: var(--on-accent); cursor: pointer;
}
button:disabled { opacity: .5; cursor: default; }
.error { color: var(--danger); }
.hidden { display: none; }
