:root {
  color-scheme: light;
  --bg: #f7f8f4;
  --surface: #ffffff;
  --surface-2: #eef3f6;
  --ink: #162024;
  --muted: #5b666b;
  --line: #d9e0dd;
  --accent: #0f766e;
  --accent-2: #2563eb;
  --accent-3: #b45309;
  --danger: #b91c1c;
  --ok: #15803d;
  --shadow: 0 10px 30px rgba(22, 32, 36, 0.08);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}

p,
li,
summary,
td,
th {
  overflow-wrap: break-word;
}

a {
  color: var(--accent-2);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 248, 244, 0.94);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

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

.brand {
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.nav a {
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.9rem;
  padding: 6px 9px;
  text-decoration: none;
}

.nav a:hover,
.nav a:focus-visible {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.tool-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(340px, 1.04fr);
  gap: 28px;
  align-items: start;
  padding: 28px 0 36px;
}

.tool-copy {
  padding-top: 8px;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 780;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 4.25rem);
  max-width: 780px;
}

h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
  margin-bottom: 16px;
}

h3 {
  font-size: 1.05rem;
}

.lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 720px;
  margin: 18px 0 0;
}

.tool-preview {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: block;
  height: auto;
  margin-top: 22px;
  max-width: 540px;
  width: 100%;
}

.intent-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.intent-list li {
  border-left: 3px solid var(--accent);
  padding-left: 12px;
  color: var(--muted);
}

.tool-panel,
.section-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.tool-panel {
  padding: 20px;
}

.section-panel {
  padding: 26px;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

label,
.label {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 720;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}

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

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(37, 99, 235, 0.14);
  border-color: var(--accent-2);
}

.checks {
  display: grid;
  gap: 8px;
}

.check-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 9px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  background: #fbfcfa;
}

.check-row input {
  min-height: auto;
  margin: 3px 0 0;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

button,
.button {
  border: 1px solid var(--ink);
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 760;
  min-height: 42px;
  padding: 10px 14px;
  text-decoration: none;
}

button.secondary,
.button.secondary {
  background: var(--surface);
  color: var(--ink);
}

button:hover,
.button:hover,
button:focus-visible,
.button:focus-visible {
  transform: translateY(-1px);
}

.result {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink);
  margin-top: 18px;
  min-height: 120px;
  overflow-wrap: anywhere;
  padding: 14px;
  white-space: pre-wrap;
}

.score {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 14px 0;
}

.score-number {
  border: 2px solid var(--accent);
  border-radius: 999px;
  display: grid;
  font-size: 1.3rem;
  font-weight: 800;
  height: 64px;
  place-items: center;
  width: 64px;
}

.meter {
  background: #dde5e4;
  border-radius: 999px;
  height: 12px;
  overflow: hidden;
}

.meter > span {
  background: var(--accent);
  display: block;
  height: 100%;
  width: 0;
}

.sections {
  display: grid;
  gap: 24px;
}

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

.mini-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.mini-card p,
.section-panel p {
  color: var(--muted);
}

.mini-card p:last-child,
.section-panel p:last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 11px;
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--surface-2);
  font-size: 0.88rem;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.faq details:first-child {
  border-top: 0;
}

summary {
  cursor: pointer;
  font-weight: 760;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  padding: 24px 20px 40px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.hub-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none;
}

.hub-card h2 {
  color: var(--ink);
  font-size: 1.25rem;
}

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

.hub-card:hover,
.hub-card:focus-visible {
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    display: grid;
    gap: 8px 18px;
    grid-template-columns: repeat(2, max-content);
    width: 100%;
  }

  .nav a {
    max-width: 100%;
  }

  .tool-hero,
  .content-grid,
  .hub-grid {
    grid-template-columns: 1fr;
  }

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

  .page {
    padding-top: 20px;
  }
}
