:root {
  --ink: #171717;
  --muted: #676b61;
  --line: #d9ddd0;
  --paper: #f6f4ec;
  --panel: #fffdf7;
  --leaf: #2f6f51;
  --moss: #8da15f;
  --sun: #d8a73f;
  --tomato: #cf4b32;
  --sky: #7ca9b7;
  --shadow: 0 18px 55px rgba(25, 31, 20, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(47, 111, 81, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(47, 111, 81, 0.08) 1px, transparent 1px),
    var(--paper);
  background-size: 56px 56px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(23, 23, 23, 0.12);
  background: rgba(246, 244, 236, 0.9);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-icon {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 0;
  flex: 0 0 auto;
}

.brand-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.brand-copy strong,
.brand-copy small {
  display: block;
  white-space: nowrap;
}

.brand-copy strong {
  font-size: 15px;
  line-height: 1.1;
}

.brand-copy small {
  color: var(--muted);
  font-size: 12px;
}

.topnav {
  display: flex;
  gap: 8px;
  align-items: center;
}

.topnav a {
  padding: 9px 12px;
  border: 1px solid transparent;
  color: #33362f;
  font-size: 14px;
}

.topnav a:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(20px, 3vw, 38px);
  align-items: start;
  padding: clamp(30px, 5vw, 68px) clamp(18px, 4vw, 54px) 28px;
}

.workspace-copy h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(42px, 7vw, 96px);
  line-height: 0.95;
  font-weight: 850;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--tomato);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede {
  max-width: 690px;
  margin: 22px 0 0;
  color: #3c4038;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
}

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

.trust-row span,
.confidence span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 8px 11px;
  border: 1px solid rgba(23, 23, 23, 0.16);
  background: rgba(255, 253, 247, 0.7);
  color: #3e443a;
  font-size: 13px;
}

.visual-asset {
  min-height: 280px;
  border: 1px solid rgba(23, 23, 23, 0.16);
  background: #20251d;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-asset canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
}

.tool-panel {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 0.65fr 0.65fr 0.8fr 0.8fr;
  gap: 12px;
  padding: 16px;
  border: 2px solid var(--ink);
  background: var(--panel);
  box-shadow: 8px 8px 0 var(--ink);
}

.quick-help {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.quick-help span {
  min-height: 46px;
  padding: 12px;
  border: 1px solid rgba(23, 23, 23, 0.16);
  background: rgba(255, 253, 247, 0.72);
  color: #3d4439;
  font-size: 14px;
  line-height: 1.35;
}

.field {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
}

.field.wide,
.buffs.wide {
  min-width: 0;
}

.field label,
.buffs {
  color: #343830;
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(23, 23, 23, 0.22);
  border-radius: 0;
  background: white;
  color: var(--ink);
  padding: 10px 11px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--leaf);
  box-shadow: 0 0 0 3px rgba(47, 111, 81, 0.16);
}

.input-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid rgba(23, 23, 23, 0.22);
  background: white;
}

.input-unit input {
  border: 0;
}

.input-unit span {
  padding-right: 12px;
  color: var(--muted);
  font-weight: 760;
}

.buffs {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  gap: 8px;
}

.check {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(23, 23, 23, 0.16);
  background: #f7f0dd;
  text-transform: none;
}

.check input {
  width: 16px;
  min-height: 16px;
  accent-color: var(--leaf);
}

.primary-action {
  min-height: 44px;
  border: 0;
  background: var(--ink);
  color: white;
  cursor: pointer;
  font-weight: 830;
}

.primary-action:hover {
  background: var(--leaf);
}

.suggestions {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 30;
  max-height: 260px;
  overflow: auto;
  border: 1px solid var(--ink);
  background: white;
  box-shadow: var(--shadow);
}

.suggestions:empty {
  display: none;
}

.suggestion {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 11px 12px;
  text-align: left;
  cursor: pointer;
}

.suggestion:hover {
  background: #f4f7e9;
}

.result-band,
.pet-browser,
.seo-content,
.guide-grid {
  margin: 18px clamp(18px, 4vw, 54px);
}

.result-band {
  padding: clamp(18px, 3vw, 28px);
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid rgba(23, 23, 23, 0.16);
  background: rgba(255, 253, 247, 0.78);
}

.result-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.result-header h2,
.section-heading h2,
.guide-grid h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.result-block {
  min-height: 150px;
  padding: 16px;
  border: 1px solid rgba(23, 23, 23, 0.16);
  background: white;
}

.result-block span,
.stat-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.result-block p {
  margin: 12px 0 0;
  font-size: 17px;
  line-height: 1.5;
}

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

.stat-card {
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(23, 23, 23, 0.14);
  background: #fbf8ed;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 23px;
}

.stat-comparison {
  margin-top: 8px;
  color: var(--leaf);
  font-size: 14px;
  font-weight: 820;
}

.stat-card p {
  margin: 5px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.pet-browser {
  padding: clamp(18px, 3vw, 28px) 0;
}

.seo-content {
  padding: clamp(22px, 4vw, 38px);
  border-top: 3px solid var(--ink);
  border-bottom: 1px solid rgba(23, 23, 23, 0.16);
  background: rgba(255, 253, 247, 0.82);
}

.seo-content h2 {
  margin: 0 0 20px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1;
}

.seo-content p {
  margin: 0 0 18px;
  color: #353a32;
  font-size: 17px;
  line-height: 1.72;
}

.seo-lede {
  max-width: 920px;
  font-size: 19px;
}

.seo-content strong {
  color: var(--leaf);
  font-weight: 850;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.guide-card,
.faq-list article,
.detail-blocks article,
.guide-split > div {
  border: 1px solid rgba(23, 23, 23, 0.16);
  background: white;
}

.guide-card {
  min-height: 210px;
  padding: 16px;
}

.seo-content h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.15;
}

.guide-card p,
.faq-list p {
  font-size: 15px;
  line-height: 1.6;
}

.guide-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.guide-split > div {
  padding: 18px;
}

.steps-list,
.plain-list {
  margin: 0;
  padding-left: 22px;
  color: #353a32;
  line-height: 1.8;
}

.detail-blocks {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.detail-blocks article {
  padding: 18px;
}

.detail-blocks p {
  font-size: 15px;
  line-height: 1.62;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.faq-list article {
  padding: 18px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
  margin-bottom: 14px;
}

.browser-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 10px;
  margin-bottom: 12px;
}

.table-wrap {
  max-height: 620px;
  overflow: auto;
  border: 1px solid rgba(23, 23, 23, 0.18);
  background: white;
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f2ecd8;
  font-size: 12px;
  text-transform: uppercase;
}

td {
  font-size: 14px;
  line-height: 1.45;
}

.mini-button {
  border: 1px solid var(--ink);
  background: white;
  padding: 7px 10px;
  cursor: pointer;
  font-weight: 760;
}

.mini-button:hover {
  background: var(--ink);
  color: white;
}

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

.guide-grid article {
  padding: 18px;
  border-top: 1px solid rgba(23, 23, 23, 0.2);
  background: rgba(255, 253, 247, 0.62);
}

.guide-grid p {
  color: #42483e;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .workspace,
  .tool-panel,
  .quick-help,
  .result-grid,
  .stat-rows,
  .guide-card-grid,
  .guide-split,
  .detail-blocks,
  .faq-list,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .visual-asset {
    min-height: 220px;
  }

  .tool-panel {
    box-shadow: 5px 5px 0 var(--ink);
  }

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

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

  .topnav {
    width: 100%;
    justify-content: space-between;
  }

  .workspace-copy h1 {
    font-size: 42px;
  }

  .result-header,
  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .table-wrap {
    max-height: none;
  }

  th:nth-child(3),
  td:nth-child(3) {
    display: none;
  }
}
