/* BuildNest Tools - shared styles */
:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --accent: #f97316;
  --border: #dbe4ef;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top, #eefdf9 0, var(--bg) 42%, #eef2ff 100%);
  line-height: 1.6;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.site-shell { min-height: 100vh; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(246, 248, 252, 0.88);
  border-bottom: 1px solid rgba(219, 228, 239, 0.8);
}
.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--brand), #14b8a6);
  box-shadow: var(--shadow);
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}
.nav-links a { color: inherit; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 72px;
}
.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 24px;
  align-items: center;
  padding: 18px 0 8px;
}
.hero-card,
.panel,
.tool-card,
.info-card,
.faq-item,
.footer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-copy { padding: 20px 4px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.9rem;
  font-weight: 700;
}
h1, h2, h3 { line-height: 1.15; margin: 0 0 14px; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.2rem, 4vw, 4.2rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
h3 { font-size: 1.1rem; }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}
.point {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 118, 110, 0.06);
  border: 1px solid rgba(15, 118, 110, 0.14);
  font-size: 0.95rem;
  color: var(--text);
}
.hero-panel {
  padding: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #effdf8 100%);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.stat {
  padding: 16px;
  border-radius: 16px;
  background: white;
  border: 1px solid var(--border);
}
.stat strong { display: block; font-size: 1.4rem; margin-bottom: 4px; }
.stat span { color: var(--muted); font-size: 0.92rem; }

.section { margin-top: 42px; }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-head p { margin: 0; color: var(--muted); max-width: 64ch; }
.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.tool-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tool-card .inner { padding: 22px; }
.tool-card p { color: var(--muted); margin-top: 0; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.badge {
  padding: 6px 10px;
  border-radius: 999px;
  background: #ecfeff;
  border: 1px solid #bae6fd;
  color: #075985;
  font-size: 0.8rem;
  font-weight: 700;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--brand); color: white; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; }
.btn-secondary { background: white; color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--surface-alt); text-decoration: none; }

.page-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 22px;
  align-items: start;
}
.panel { padding: 22px; }
.tool-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 700; font-size: 0.95rem; }
.field input, .field select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  font: inherit;
  color: var(--text);
  background: white;
}
.field small { color: var(--muted); }
.tool-form .full { grid-column: 1 / -1; }
.result {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ecfeff 0%, #ffffff 100%);
  border: 1px solid #c7f9f1;
}
.result strong { display: block; font-size: 1.2rem; margin-bottom: 8px; }
.result-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.result-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: white;
  border: 1px solid rgba(219, 228, 239, 0.85);
}
.result-item span:first-child { color: var(--muted); }
.result-item span:last-child { font-weight: 800; }
.ad-slot {
  margin: 20px 0;
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed #cbd5e1;
  background: repeating-linear-gradient(45deg, #f8fafc, #f8fafc 12px, #eef2f7 12px, #eef2f7 24px);
  color: #475569;
  text-align: center;
  font-size: 0.92rem;
}
.content-card {
  margin-top: 18px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.content-card p, .content-card li { color: var(--muted); }
.content-card ul { padding-left: 20px; }
.faq {
  display: grid;
  gap: 14px;
}
.faq-item { padding: 18px 20px; }
.faq-item summary { cursor: pointer; font-weight: 800; }
.faq-item p { margin-bottom: 0; color: var(--muted); }
.footer {
  margin-top: 42px;
  padding-top: 18px;
}
.footer-card { padding: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); }
.small { font-size: 0.92rem; color: var(--muted); }
.notice {
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.95rem;
}

@media print {
  .topbar, .nav, .btn-row, .footer, .ad-slot, .hero-points, .stat-grid { display: none !important; }
  .hero { padding: 0; }
  .page-grid { display: block; }
  .panel { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .result { break-inside: avoid; border: 1px solid #ccc; }
  .site-shell { min-height: auto; }
  .section { margin-top: 16px; }
  .container { padding-bottom: 20px; }
  body { background: white; font-size: 11pt; }
}
@media (max-width: 960px) {
  .hero, .page-grid, .tool-grid { grid-template-columns: 1fr; }
  .hero-points, .stat-grid, .tool-form { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
}
