:root {
  color-scheme: light;
  --ink: oklch(24% 0.018 82);
  --muted: oklch(47% 0.022 82);
  --paper: oklch(97% 0.012 82);
  --surface: oklch(99% 0.006 82);
  --soft: oklch(94% 0.018 82);
  --line: oklch(84% 0.018 82);
  --brand: oklch(47% 0.13 146);
  --brand-strong: oklch(36% 0.12 146);
  --accent: oklch(61% 0.15 56);
  --focus: oklch(58% 0.16 236);
  --ok: oklch(42% 0.12 146);
  --bad: oklch(48% 0.16 28);
  --radius: 8px;
  --shadow: 0 18px 45px oklch(24% 0.018 82 / 0.10);
  font-family: Arial, "Nirmala UI", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, oklch(94% 0.028 84), var(--paper) 320px),
    var(--paper);
  color: var(--ink);
}

a {
  color: var(--brand-strong);
}

.itt-header,
.trust-strip,
.breadcrumb,
main,
.itt-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.itt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 14px;
}

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

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--surface);
  font-size: 13px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
}

nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--ink);
  text-decoration: none;
}

nav a:hover,
nav a[aria-current="page"] {
  border-color: var(--line);
  background: var(--surface);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 14px;
}

.trust-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: oklch(98% 0.01 82);
  padding: 6px 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--brand-strong);
  text-underline-offset: 4px;
}

main {
  padding: 10px 0 52px;
}

.tool {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 30px);
}

.tool-heading {
  max-width: 780px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
}

h2 {
  margin: 34px 0 10px;
  font-size: clamp(22px, 2.5vw, 30px);
  line-height: 1.15;
}

p,
li {
  line-height: 1.65;
}

p {
  max-width: 72ch;
}

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

.byline {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

code {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
  padding: 2px 6px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin: 14px 0;
}

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

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 800;
}

textarea,
input,
select,
button {
  font: inherit;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: oklch(99% 0.004 82);
  color: var(--ink);
}

textarea {
  min-height: 190px;
  padding: 13px;
  line-height: 1.65;
  resize: vertical;
}

input,
select {
  min-height: 42px;
  padding: 8px 10px;
}

textarea:focus,
input:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid oklch(58% 0.16 236 / 0.24);
  outline-offset: 2px;
}

button {
  min-height: 42px;
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  padding: 0 15px;
  background: var(--brand);
  color: var(--surface);
  cursor: pointer;
  font-weight: 800;
}

button:hover {
  background: var(--brand-strong);
}

button.secondary {
  background: oklch(99% 0.004 82);
  color: var(--ink);
  border-color: var(--line);
}

button.secondary:hover {
  background: var(--soft);
}

.status {
  min-height: 26px;
  align-self: center;
  color: var(--muted);
  font-weight: 800;
}

.metric-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.metric {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  padding: 12px;
}

.metric strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.metric span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
}

.keyboard {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.keyboard-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.keyboard button {
  min-width: 40px;
  padding: 0 10px;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.tool-grid a {
  display: block;
  min-height: 138px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  padding: 14px;
  color: var(--ink);
  text-decoration: none;
}

.tool-grid a:hover {
  border-color: var(--brand);
}

.tool-grid strong,
.tool-grid span {
  display: block;
}

.tool-grid strong {
  margin-bottom: 8px;
  font-size: 17px;
}

.tool-grid span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.related-tools,
.content-section {
  margin-top: 30px;
}

.steps {
  max-width: 78ch;
}

.example-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  background: var(--surface);
}

.example-table th,
.example-table td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left;
}

.example-table th {
  background: var(--soft);
}

.example-media {
  margin: 18px 0 0;
}

.example-media img {
  display: block;
  width: min(620px, 100%);
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.example-media figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.reference-list {
  max-width: 78ch;
}

.faq-section article {
  max-width: 82ch;
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

.faq-section h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.faq-section p {
  margin: 0;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 0 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.links a:hover {
  border-color: var(--brand);
}

.itt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.itt-footer p {
  margin: 0;
}

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

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