*, *::before, *::after { box-sizing: border-box; }
:root {
  --accent: #4f46e5;
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #ffffff;
  --soft: #f4f6fa;
  --line: #e2e8f0;
}
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
a { color: var(--accent); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85em; background: var(--soft); padding: 2px 6px; border-radius: 4px; }

.testbar {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  padding: 6px 16px; font-size: 13px;
  background: #fff8e1; border-bottom: 1px solid #f5d98b; color: #5b4a12;
}
.testbar .muted { color: #8a7a3a; }
.env { padding: 2px 8px; border-radius: 999px; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; }
.env-staging { background: #dbeafe; color: #1e3a8a; }
.env-production { background: #dcfce7; color: #14532d; }
.banner { background: #fee2e2; color: #7f1d1d; padding: 10px 16px; font-weight: 600; text-align: center; }

.site-header {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 16px; max-width: 1040px; margin: 0 auto;
}
.brand { font-weight: 800; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.site-header nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-header nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.site-header nav a:hover { color: var(--accent); }

main { max-width: 1040px; margin: 0 auto; padding: 0 16px 64px; }
.hero { padding: 56px 0 32px; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1; margin: 0 0 16px; color: var(--accent); }
.hero p { font-size: 1.1rem; max-width: 60ch; margin: 0 0 12px; }
.hint { color: var(--muted); font-size: 0.95rem; }

.section { padding: 32px 0; border-top: 1px solid var(--line); }
.section h2 { margin: 0 0 16px; font-size: 1.5rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.card { background: var(--soft); border-radius: 12px; padding: 18px; }
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0; color: var(--muted); }
.about p { max-width: 70ch; }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--line); }

.site-footer { border-top: 1px solid var(--line); padding: 24px 16px 120px; text-align: center; color: var(--muted); font-size: 0.9rem; }

/* index page */
.index section.env { padding: 24px 0; border-top: 1px solid var(--line); }
.index section.env h2 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 12px; }
.index section.env h2 small { color: var(--muted); font-weight: 400; font-size: 0.9rem; }
.index section.env ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.index .site { background: var(--soft); border-radius: 12px; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.index .site a { font-weight: 700; font-size: 1.1rem; text-decoration: none; color: var(--ink); }
.index .site a:hover { color: var(--accent); }
.index .site p { flex-basis: 100%; margin: 0; color: var(--muted); font-size: 0.95rem; }
.index .site.placeholder { opacity: 0.7; border: 1px dashed #cbd5e1; }
.tag { background: #fee2e2; color: #7f1d1d; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.empty { color: var(--muted); }
