:root {
  --ink: #10202a;
  --muted: #5d6b74;
  --line: #d9e4e7;
  --paper: #ffffff;
  --wash: #f4f8f7;
  --teal: #0c9b8a;
  --teal-dark: #08796d;
  --yellow: #f4bd37;
  --red: #b73333;
  --shadow: 0 18px 50px rgba(12, 30, 38, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--wash);
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 20px 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 36px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal-dark);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 13px;
}

h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-copy {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 19px;
  max-width: 650px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-row span {
  background: #e7f3f1;
  color: #0b5f56;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.tool-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 22px;
}

.tool-panel h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.tool-panel p {
  margin: 0 0 18px;
  color: var(--muted);
}

.input-row {
  display: flex;
  gap: 10px;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 13px;
  font: inherit;
  color: var(--ink);
  background: #fbfdfd;
}

input:focus {
  outline: 3px solid rgba(12, 155, 138, 0.18);
  border-color: var(--teal);
}

button,
.button {
  border: 0;
  border-radius: 6px;
  background: var(--teal);
  color: white;
  padding: 13px 16px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

button:hover,
.button:hover {
  background: var(--teal-dark);
}

.secondary {
  background: #e9f0f1;
  color: var(--ink);
}

.secondary:hover {
  background: #dbe7e8;
}

.status {
  min-height: 24px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

.status[data-tone="success"] {
  color: var(--teal-dark);
}

.status[data-tone="error"] {
  color: var(--red);
}

.result {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.result-actions {
  display: flex;
  gap: 8px;
}

.row-count {
  color: var(--muted);
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  min-width: 620px;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  background: #edf5f4;
  color: #28454d;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 38px 20px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: 32px;
  letter-spacing: 0;
}

.section-intro {
  color: var(--muted);
  max-width: 760px;
  margin: 0 0 22px;
  font-size: 17px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p,
.card li {
  color: var(--muted);
}

.card p {
  margin: 0;
}

.content-band {
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.faq details {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

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

.ad-slot {
  border: 1px dashed #b8c8cc;
  color: #6b7a82;
  background: rgba(255,255,255,0.65);
  border-radius: 8px;
  min-height: 110px;
  display: grid;
  place-items: center;
  font-size: 13px;
  margin-top: 22px;
}

.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 20px 44px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 14px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .input-row,
  .result-head,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    display: none;
  }
}
