/* PolicyMap.ai */

:root {
  --font-title: 'Noto Serif SC', Georgia, serif;
  --font-body: 'Noto Sans SC', 'PingFang SC', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --ink: #1a1a18;
  --body: #4a4a45;
  --muted: #8a8a82;
  --accent: #c23616;
  --border: #e5e4e0;
  --card: #ffffff;
  --bg: #fafaf9;
}

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

html { font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2 {
  font-family: var(--font-title);
  color: var(--ink);
  font-weight: 700;
}

a { color: var(--accent); text-decoration: none; }

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── Header ── */
header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}

.header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-name {
  font-family: var(--font-title);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
}

.logo-dot { color: var(--accent); }

.header-link {
  font-size: 0.8125rem;
  color: var(--muted);
}
.header-link:hover { color: var(--accent); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 0 4rem;
  position: relative;
}

.hero-inner {
  text-align: center;
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.25rem);
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-desc {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 3rem;
  line-height: 1.8;
}

/* ── Instruction Box (Hero) ── */
.instruction-box {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(26,26,24,0.06);
  text-align: left;
}

.instruction-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 1rem 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink);
  outline: none;
  cursor: default;
  min-width: 0;
  line-height: 1.5;
  text-overflow: ellipsis;
}

.copy-btn {
  flex-shrink: 0;
  border: none;
  background: var(--accent);
  color: white;
  padding: 1rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.copy-btn:hover { background: #d84a2e; }
.copy-btn.copied { background: #4a8c5c; }

.hero-hint {
  margin-top: 0.875rem;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Scroll cue */
.scroll-cue {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--border);
  animation: pulse-down 2s ease-in-out infinite;
}

.scroll-cue-line {
  width: 1px;
  height: 2rem;
  background: var(--border);
}

@keyframes pulse-down {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.8; transform: translateX(-50%) translateY(6px); }
}

/* ── Coverage (subdued) ── */
.coverage {
  padding: 4rem 0 5rem;
}

.coverage h2 {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.coverage-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.coverage-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.coverage-item:last-child {
  border-bottom: none;
}

.coverage-item-left {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
}

.coverage-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.coverage-chain {
  font-size: 0.6875rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.coverage-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}

.coverage-more {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  font-style: italic;
}

/* ── Footer ── */
footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: var(--font-title);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--muted);
}
.footer-brand span { color: var(--accent); }

.footer-license {
  font-size: 0.6875rem;
  color: var(--muted);
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .hero { min-height: 90vh; padding: 5rem 0 3rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero-desc { font-size: 0.9375rem; }
  .instruction-input { font-size: 0.75rem; padding: 0.875rem; }
  .copy-btn { padding: 0.875rem 1.25rem; }
  .coverage-item-left { flex-direction: column; gap: 0.125rem; }
  .container { padding: 0 1.25rem; }
}
