:root {
  color-scheme: light;
  --bg: #f6f7f3;
  --panel: #ffffff;
  --ink: #202521;
  --muted: #66706a;
  --line: #d9ded5;
  --brand: #1f7a5c;
  --brand-strong: #155f47;
  --accent: #b45f2a;
  --soft: #e8f1ec;
  --danger: #a73931;
  --shadow: 0 16px 38px rgba(31, 38, 33, 0.08);
}

* {
  box-sizing: border-box;
}

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

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

a:hover {
  text-decoration: underline;
}

.shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  letter-spacing: 0;
}

.mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

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

.intro {
  padding: 28px;
  min-height: 100%;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 720;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: 0;
}

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

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 26px;
}

.fact {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfa;
}

.fact b {
  display: block;
  margin-bottom: 3px;
}

.fact span {
  color: var(--muted);
  font-size: 13px;
}

.tool {
  padding: 22px;
}

.tool h2,
.section h2 {
  margin: 0 0 14px;
  font-size: 21px;
  letter-spacing: 0;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

label {
  color: #3b443f;
  font-size: 14px;
  font-weight: 680;
}

input[type="text"],
input[type="number"],
input[type="file"] {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  font: inherit;
}

input[type="file"] {
  padding: 8px;
}

.inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

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

button {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 720;
}

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

button.secondary {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

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

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.status {
  min-height: 58px;
  margin-top: 16px;
  padding: 13px;
  border-radius: 8px;
  background: var(--soft);
  color: #24473b;
  font-size: 14px;
}

.status.error {
  background: #f8e7e4;
  color: var(--danger);
}

.status.empty {
  color: var(--muted);
  background: #f7f8f5;
}

.job-meta {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.ad-slot {
  display: grid;
  min-height: 96px;
  margin: 24px 0;
  place-items: center;
  box-shadow: none;
  color: #7a817d;
  font-size: 13px;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.section {
  padding: 20px;
  box-shadow: none;
}

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

.section ul {
  margin: 0;
  padding-left: 18px;
}

.page {
  max-width: 820px;
}

.page .section {
  margin-bottom: 18px;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 24px 0 8px;
  color: var(--muted);
  font-size: 13px;
}

.hidden {
  display: none !important;
}

@media (max-width: 860px) {
  .shell {
    padding: 18px;
  }

  .topbar,
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

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

  h1 {
    font-size: 30px;
  }
}
