/* carkey lead site - shared styles */
:root {
  --green: #25D366;
  --green-dark: #128C7E;
  --ink: #1a202c;
  --gray: #64748b;
  --bg: #f8fafc;
  --card: #ffffff;
  --line: #e2e8f0;
  --blue: #2563eb;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Segoe UI", -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* header */
header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.logo { font-weight: 800; font-size: 18px; color: var(--ink); }
.logo span { color: var(--green-dark); }
nav a {
  margin-left: 18px;
  color: var(--gray);
  font-weight: 600;
  font-size: 14px;
}
nav a:hover { color: var(--ink); text-decoration: none; }

/* layout */
.container { max-width: 1000px; margin: 0 auto; padding: 32px 20px 80px; }
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: #fff;
  border-radius: 16px;
  padding: 48px 40px;
  text-align: center;
  margin-bottom: 36px;
}
.hero h1 { font-size: 34px; margin-bottom: 12px; line-height: 1.3; }
.hero p { color: #cbd5e1; font-size: 17px; max-width: 640px; margin: 0 auto 26px; }
.btn {
  display: inline-block;
  background: var(--green);
  color: #fff !important;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 10px;
  margin: 6px;
  text-decoration: none !important;
}
.btn:hover { background: #1fb958; }
.btn.dark { background: #0f172a; border: 1px solid #334155; }
.btn.dark:hover { background: #1e293b; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  margin-bottom: 22px;
}
h2 { font-size: 24px; margin-bottom: 12px; }
h3 { font-size: 18px; margin: 18px 0 8px; }
p { margin-bottom: 10px; }
.muted { color: var(--gray); font-size: 14px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } }

/* key finder */
.finder-box { max-width: 560px; margin: 0 auto; }
label { display: block; font-weight: 700; font-size: 14px; margin: 14px 0 6px; }
select, input[type="text"], input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
}
select:focus, input:focus { outline: 2px solid var(--green); border-color: transparent; }
.result-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  margin: 12px 0;
  background: #fff;
}
.result-item .name { font-weight: 700; }
.result-item .meta { font-size: 13px; color: var(--gray); margin: 6px 0; }
.result-item .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.btn.sm { padding: 9px 16px; font-size: 14px; }
.btn.ghost { background: var(--card); color: var(--ink) !important; border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: var(--green); color: var(--green-dark) !important; background: #f0fdf4; }

/* popup */
.popup-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.55);
  display: none; align-items: center; justify-content: center; z-index: 200;
}
.popup-overlay.show { display: flex; }
.popup {
  background: #fff; border-radius: 16px; max-width: 420px; width: 90%;
  padding: 32px 28px; text-align: center; position: relative;
}
.popup h3 { margin-top: 0; }
.popup .close {
  position: absolute; top: 12px; right: 16px; cursor: pointer;
  font-size: 22px; color: var(--gray); background: none; border: none;
}

/* wa float */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 100;
  background: var(--green); color: #fff; border-radius: 50px;
  padding: 13px 20px; font-weight: 700; box-shadow: 0 6px 18px rgba(37,211,102,.4);
  display: flex; align-items: center; gap: 9px;
  text-decoration: none !important;
}
.wa-float:hover { background: #1fb958; transform: translateY(-2px); }
.wa-float .ic { font-size: 20px; }

/* footer */
footer {
  border-top: 1px solid var(--line);
  padding: 22px 20px;
  text-align: center;
  color: var(--gray);
  font-size: 13px;
  background: var(--card);
}

/* guide pages */
.guide h1 { font-size: 30px; line-height: 1.35; margin-bottom: 10px; }
.guide .tag {
  display: inline-block; background: #ecfdf5; color: var(--green-dark);
  font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px; margin-bottom: 16px;
}
.guide ul, .guide ol { margin: 0 0 14px 22px; }
.guide li { margin-bottom: 6px; }
.cta-box {
  background: #f0fdf4; border: 1.5px solid var(--green);
  border-radius: 14px; padding: 22px; text-align: center; margin: 26px 0;
}
.cta-box p { margin-bottom: 8px; }
table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
th, td { border: 1px solid var(--line); padding: 9px 12px; text-align: left; }
th { background: #f1f5f9; }
