:root {
  --primary: #2563eb;
  --secondary: #10b981;
  --bg: #f3f4f6;
  --text: #111827;
  --muted: #6b7280;
  --white: #ffffff;
  --danger: #ef4444;
}

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

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Layout helpers */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--white);
  border-bottom: 1px solid #e5e7eb;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.logo {
  font-weight: 700;
  color: var(--primary);
}

.nav-links a {
  margin-left: 1.25rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--primary);
}

/* Hero */
.hero {
  padding: 2.5rem 0 2rem;
  background: linear-gradient(135deg, #eff6ff, #eef2ff);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.hero p {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.hero-buttons .btn {
  margin-right: 0.75rem;
}

.hero-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
}

.hero-card p {
  margin: 0.3rem 0;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.1s;
}

.btn.primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 15px rgba(37, 99, 235, 0.35);
}

.btn.secondary {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn.outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid #cbd5f5;
}

.btn.small {
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
}

.btn:hover {
  transform: translateY(-1px);
}

/* Tools grid on home */
.tools {
  padding: 2rem 0 3rem;
}

.tools h2 {
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  margin-bottom: 0.85rem;
}

/* Trust */
.trust {
  background: #e0f2fe;
  padding: 2rem 0;
  text-align: center;
}

.trust p {
  color: var(--muted);
}

/* Tool pages */
.tool {
  padding: 2rem 0 3rem;
}

.tool .tool-inner {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
  max-width: 800px;
  margin: 0 auto;
}

.tool h1 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.form-row select,
.form-row input,
.form-row textarea {
  flex: 1;
  min-width: 160px;
}

input,
select,
textarea {
  padding: 0.5rem 0.6rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  font-family: inherit;
  font-size: 0.95rem;
}

textarea {
  min-height: 80px;
  resize: vertical;
}

/* Table */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.9rem;
}

th,
td {
  border-bottom: 1px solid #e5e7eb;
  padding: 0.5rem 0.4rem;
  text-align: left;
}

th {
  font-weight: 600;
}

td button {
  font-size: 0.8rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: none;
  background: var(--danger);
  color: #fff;
  cursor: pointer;
}

/* Results text */
.result {
  margin-top: 1rem;
  font-weight: 600;
}

.muted {
  color: var(--muted);
  font-size: 0.85rem;
}

/* Footer */
footer {
  padding: 1rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid #e5e7eb;
  margin-top: 1rem;
}

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

footer a:hover {
  color: var(--primary);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .navbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .nav-links {
    display: flex;
    flex-wrap: wrap;
  }

  .nav-links a {
    margin-left: 0;
    margin-right: 0.75rem;
  }
}
.target-form {
  display: flex;
  flex-direction: column;
  gap: 12px;           /* space between rows */
  max-width: 600px;    /* optional: limit width */
}

.target-form .field {
  display: flex;
  align-items: center;
  gap: 10px;           /* space between label and input */
}

.target-form label {
  flex: 0 0 260px;     /* fixed label width */
}

.target-form input {
  flex: 1;
}
.page-center {
  min-height: 100vh;
  display: flex;
  justify-content: center;  /* horizontal center */
  align-items: center;      /* vertical center */
}

