/* SiteIntel — WPH brand palette */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f7f6;
  --bg-mint: #E7FEF0;
  --text: #1B2821;
  --text-soft: #3d5245;
  --text-muted: #7a8f82;
  --accent: #15322B;
  --accent-hover: #1e4a3f;
  --border: #d8e4dc;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 2px 12px rgba(0,0,0,0.04);
  --shadow-lg: 0 8px 32px rgba(21,50,43,0.08);
}

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

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg-soft);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); }

/* === Header === */

.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  background: var(--accent);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.logo-text {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
}

.header-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.header-link:hover { color: var(--accent); }

/* === Hero === */

.hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
}

.hero-tag {
  display: inline-block;
  background: var(--bg-mint);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-title {
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 720px;
  margin-bottom: 20px;
}

.hero-subhead {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 640px;
  margin-bottom: 40px;
  line-height: 1.55;
}

/* === Form === */

.scan-form {
  max-width: 560px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.form-row {
  margin-bottom: 12px;
}

.form-row-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.scan-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: var(--bg);
  color: var(--text);
}

.scan-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--bg-mint);
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0;
  pointer-events: none;
}

.form-submit {
  width: 100%;
  padding: 16px 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.form-submit:hover { background: var(--accent-hover); }
.form-submit:active { transform: scale(0.99); }
.form-submit:disabled { opacity: 0.6; cursor: wait; }

.btn-loader {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-loader svg { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.form-error {
  margin-top: 12px;
  padding: 10px 14px;
  background: #fef2f2;
  color: #b91c1c;
  border-radius: 8px;
  font-size: 13px;
}

/* === How it works === */

.how-it-works {
  padding: 80px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.how-it-works h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

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

.how-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.15s, transform 0.1s;
}

.how-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.how-num {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.how-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.how-card p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.55;
}

/* === Who === */

.who {
  padding: 60px 0 80px;
  background: var(--bg-soft);
}

.who-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 12px;
}

.who-text {
  font-size: 18px;
  color: var(--text-soft);
  max-width: 720px;
  line-height: 1.55;
}

.who-text strong { color: var(--text); }

/* === Footer === */

.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  font-size: 13px;
  color: var(--text-muted);
}

/* === Confirm/Scanning page === */

.confirm {
  padding: 80px 0;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 200px);
}

.confirm-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.confirm-anim {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.confirm-card h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.confirm-text {
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: 8px;
  line-height: 1.55;
}

.confirm-checklist {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 20px;
  margin: 32px 0 24px;
  text-align: left;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color 0.3s;
}

.check-row.done {
  color: var(--text);
}

.check-mark {
  color: var(--text-muted);
  font-size: 12px;
  transition: color 0.3s;
}

.check-row.done .check-mark {
  color: var(--accent);
}

.check-row.done .check-mark::before {
  content: '\2713';
}

.check-row.done .check-mark {
  font-size: 14px;
}

.check-row.done .check-mark { content: ''; }

.confirm-meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* === Responsive === */

@media (max-width: 640px) {
  .hero { padding: 60px 0 40px; }
  .hero-title { font-size: 38px; }
  .hero-subhead { font-size: 16px; }
  .scan-form { padding: 20px; }
  .form-row-split { grid-template-columns: 1fr; }
  .how-it-works h2 { font-size: 24px; }
  .who-text { font-size: 15px; }
  .confirm-card { padding: 32px 24px; }
  .confirm-card h1 { font-size: 22px; }
}
