/* Echo — public site styles. Light theme, mobile-first, single column. */

:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --accent: #1a1a1a;
  --link: #1a1a1a;
  --code-bg: #f4f4f4;
  --max: 720px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover { text-decoration-thickness: 2px; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 20px 64px;
}

header.brand {
  border-bottom: 1px solid var(--line);
  padding: 32px 20px;
  margin-bottom: 0;
}

header.brand .wrap {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: block;
}

.logo {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  font-size: 34px;
  letter-spacing: 0.04em;
  color: var(--fg);
  text-decoration: none;
}

.tagline {
  color: var(--muted);
  font-size: 16px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  padding: 3px 4px;
  border-radius: 4px;
  opacity: 0.5;
  transition: opacity 0.15s, background 0.15s;
}

.lang-switch a svg {
  display: block;
  width: 32px;
  height: 21px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.lang-switch a.active {
  opacity: 1;
  background: var(--code-bg);
}

.lang-switch a:hover { opacity: 1; }


h1 {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.25;
  margin: 24px 0 8px;
}

h2 {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  margin: 32px 0 8px;
}

h3 {
  font-weight: 700;
  font-size: 17px;
  margin: 24px 0 6px;
}

p, ul, ol { margin: 0 0 14px; }

ul, ol { padding-left: 24px; }

li { margin-bottom: 4px; }

hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 15px;
}

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

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

.meta {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 24px;
}

.meta b { color: var(--fg); }

footer.bottom {
  border-top: 1px solid var(--line);
  padding: 24px 20px;
  color: var(--muted);
  font-size: 14px;
  margin-top: 64px;
}

footer.bottom .wrap {
  padding: 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

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

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 8px;
}

.cta {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 10px;
  background: var(--fg);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

.cta.secondary {
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--fg);
}

.cta:hover { opacity: 0.9; }

.cta-note {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 24px;
}

@media (max-width: 480px) {
  .wrap { padding: 24px 16px 48px; }
  h1 { font-size: 24px; }
  h2 { font-size: 18px; }
  .brand-icon { width: 36px; height: 36px; }
  .logo { font-size: 28px; }
  .tagline { font-size: 14px; }
}
