/* Same palette and fonts as the app (yacs/ui/src/shared/theme.css). */
:root {
  --bg: #f6f6f8;
  --surface: #ffffff;
  --text: #1c1b22;
  --muted: #6b6878;
  --border: #e3e1ea;
  --accent: #5b4de0;
  --accent-hover: #4d3fd4;
  --accent-soft: #ecebfd;
  --on-accent: #ffffff;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17161c;
    --surface: #211f28;
    --text: #eceaf2;
    --muted: #9a97a8;
    --border: #35323f;
    --accent: #8b7ff5;
    --accent-hover: #9d93f7;
    --accent-soft: #2e2a4a;
    --on-accent: #15131c;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main,
header,
footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

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

a:hover {
  color: var(--accent-hover);
}

code,
kbd {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--accent-soft);
  border-radius: 5px;
  padding: 0.1em 0.35em;
}

/* Header */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

header nav a {
  color: var(--muted);
  text-decoration: none;
}

header nav a:hover {
  color: var(--text);
}

/* Home */

.hero {
  padding: 48px 0 32px;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 28px;
}

.actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.actions .button {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 12px;
  white-space: nowrap;
}

.actions small {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.8;
}

.button {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  color: var(--text);
  border-color: var(--muted);
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.button.primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.more,
.phone {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 14px 0 0;
}

.phone {
  margin-top: 6px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  padding: 0;
  margin: 24px 0 0;
  list-style: none;
}

.features li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.features strong {
  display: block;
  margin-bottom: 4px;
}

.features span {
  color: var(--muted);
  font-size: 0.95rem;
}

section {
  padding: 24px 0;
}

h2 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

/* Legal pages */

.legal {
  padding: 24px 20px 48px;
}

.legal h1 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.legal h2 {
  margin-top: 36px;
}

.legal h3 {
  font-size: 1.05rem;
  margin: 24px 0 4px;
}

.legal p,
.legal li {
  color: var(--muted);
}

.legal strong {
  color: var(--text);
  font-weight: 600;
}

.updated {
  font-size: 0.95rem;
}

/* The address is split by decoys only a raw-HTML reader sees. */
.email .decoy {
  display: none;
}

.email {
  user-select: all;
}

/* Footer */

footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding-top: 24px;
  padding-bottom: 32px;
  font-size: 0.9rem;
  color: var(--muted);
}

footer a {
  color: var(--muted);
}

footer a:hover {
  color: var(--text);
}

footer .spacer {
  flex: 1;
}
