* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #f8f9fa;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #666;
  --border: #e5e7eb;
  --brand: #007aff;
  --brand-bg: #e8f4ff;
  --green-bg: #e8f5e9;
  --warning-bg: #fff8e1;
  --warning-text: #8a6a00;
  --danger-bg: #fff3f3;
  --danger-text: #c00;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

header.site {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

header.site .inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

header.site .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
}

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

header.site nav {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

header.site nav a {
  color: var(--muted);
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 500;
}

header.site nav a:hover {
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
}

header.site nav a.active {
  background: var(--brand-bg);
  color: var(--brand);
}

main {
  max-width: 800px;
  margin: 32px auto;
  padding: 0 20px 48px;
}

.hero {
  text-align: center;
  padding: 48px 20px 32px;
}

.hero h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.hero p {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  margin-bottom: 20px;
}

.card h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.card h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 18px 0 8px;
}

.card p, .card li {
  font-size: 15px;
  color: #333;
  margin-bottom: 10px;
}

.card ul, .card ol {
  padding-left: 22px;
  margin-bottom: 12px;
}

.card li { margin-bottom: 6px; }

.card code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.grid a.tile {
  display: block;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.grid a.tile:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  text-decoration: none;
  border-color: var(--brand);
}

.grid a.tile .title {
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 4px;
}

.grid a.tile .desc {
  font-size: 13px;
  color: var(--muted);
}

.contact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.contact-row a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: 10px;
  color: var(--text);
}

.contact-row a:hover { background: var(--brand-bg); text-decoration: none; }
.contact-row .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.contact-row .value { font-size: 15px; font-weight: 600; color: var(--text); }

details.faq {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

details.faq:last-of-type { border-bottom: none; }

details.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

details.faq summary::-webkit-details-marker { display: none; }

details.faq summary::before {
  content: "+";
  font-size: 20px;
  color: var(--brand);
  width: 18px;
  text-align: center;
  transition: transform 0.15s ease;
}

details.faq[open] summary::before {
  content: "−";
}

details.faq > *:not(summary) {
  margin-top: 10px;
  color: #333;
  font-size: 15px;
}

.callout {
  padding: 14px 16px;
  border-radius: 10px;
  margin: 12px 0;
  font-size: 14px;
}

.callout.info { background: var(--brand-bg); color: #004a99; }
.callout.warn { background: var(--warning-bg); color: var(--warning-text); }
.callout.ok   { background: var(--green-bg); color: #1b5e20; }

.steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 16px 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 12px 14px 12px 44px;
  background: var(--bg);
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 15px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 12px;
  top: 12px;
  width: 22px;
  height: 22px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

footer.site {
  max-width: 960px;
  margin: 24px auto 40px;
  padding: 24px 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  border-top: 1px solid var(--border);
}

footer.site .links {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

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

@media (max-width: 520px) {
  .hero h1 { font-size: 26px; }
  .card { padding: 24px 20px; }
  header.site nav a { padding: 6px 8px; font-size: 13px; }
}

.updated {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
