:root {
  --bg: #f7f8f5;
  --surface: #ffffff;
  --ink: #18201f;
  --muted: #64706d;
  --line: #dce2dc;
  --green: #2d7d61;
  --coral: #d45b45;
  --blue: #366f9f;
  --gold: #b07919;
  --shadow: 0 18px 45px rgba(24, 32, 31, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(45, 125, 97, 0.08), rgba(247, 248, 245, 0) 320px),
    var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

.topbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 32px;
}

.brand,
.nav,
.status-strip,
.panel-heading,
.primary-button,
.price-options {
  align-items: center;
  display: flex;
}

.brand {
  font-weight: 750;
  gap: 10px;
}

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  height: 32px;
  justify-content: center;
  letter-spacing: 0;
  width: 32px;
}

.nav {
  gap: 20px;
}

.nav a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

main {
  margin: 0 auto;
  max-width: 1240px;
  padding: 36px 24px 56px;
}

.workspace {
  display: grid;
  gap: 22px;
}

.intro {
  align-items: end;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.eyebrow {
  color: var(--green);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
  margin: 0 0 6px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
  margin-bottom: 0;
  max-width: 850px;
}

h2 {
  font-size: 21px;
  line-height: 1.2;
  margin-bottom: 0;
}

h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.status-strip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  gap: 14px;
  padding: 12px 14px;
}

.status-strip span {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.status-strip strong {
  color: var(--ink);
  display: block;
  font-size: 16px;
}

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

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

.input-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.result-panel {
  min-height: 650px;
  padding: 20px;
}

.panel-heading {
  justify-content: space-between;
  min-height: 36px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
}

input,
select,
textarea {
  background: #fbfcfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
  min-width: 0;
  outline: none;
  padding: 11px 12px;
  width: 100%;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 125, 97, 0.14);
}

.primary-button,
.icon-button {
  border: 0;
  cursor: pointer;
}

.primary-button {
  background: var(--ink);
  border-radius: 8px;
  color: #fff;
  font-weight: 760;
  gap: 10px;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
}

.primary-button:hover {
  background: #26302e;
}

.icon-button {
  align-items: center;
  background: #edf2ef;
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.icon-button:hover {
  background: #e1e9e5;
}

svg {
  fill: none;
  height: 18px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 18px;
}

.empty-state {
  align-items: center;
  color: var(--muted);
  display: grid;
  gap: 18px;
  justify-items: center;
  min-height: 560px;
  text-align: center;
}

.empty-state p {
  max-width: 360px;
}

.paper-preview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 12px 12px 0 rgba(54, 111, 159, 0.13), -12px 18px 0 rgba(212, 91, 69, 0.1);
  display: grid;
  gap: 13px;
  padding: 28px;
  width: min(260px, 70vw);
}

.paper-preview span {
  background: #d9e2dd;
  border-radius: 999px;
  display: block;
  height: 10px;
}

.paper-preview span:nth-child(1) {
  background: var(--green);
  width: 48%;
}

.paper-preview span:nth-child(2) {
  width: 92%;
}

.paper-preview span:nth-child(3) {
  width: 78%;
}

.paper-preview span:nth-child(4) {
  background: rgba(212, 91, 69, 0.38);
  width: 64%;
}

.results {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.hidden {
  display: none;
}

.result-block {
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  padding: 16px;
}

.result-block p,
.result-block ol {
  color: #394442;
  margin-bottom: 0;
}

.accent-coral {
  border-left-color: var(--coral);
}

.accent-blue {
  border-left-color: var(--blue);
}

.accent-gold {
  border-left-color: var(--gold);
}

.keyword-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  padding: 6px 10px;
}

.keyword.match {
  background: rgba(45, 125, 97, 0.09);
  border-color: rgba(45, 125, 97, 0.24);
  color: var(--green);
}

.pricing-band {
  align-items: start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 42px;
  padding-top: 28px;
}

.pricing-band h2 {
  max-width: 600px;
}

.price-options {
  gap: 12px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 148px;
  padding: 16px;
  width: 170px;
}

.price-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.price-card strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
  margin: 8px 0;
}

.price-card p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 0;
}

.price-card.highlighted {
  border-color: rgba(45, 125, 97, 0.5);
  box-shadow: 0 16px 36px rgba(45, 125, 97, 0.12);
}

@media (max-width: 920px) {
  .intro,
  .tool-grid,
  .pricing-band {
    grid-template-columns: 1fr;
  }

  .status-strip,
  .price-options {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .tool-grid {
    gap: 14px;
  }

  .result-panel {
    min-height: 520px;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
  }

  main {
    padding: 24px 14px 40px;
  }

  h1 {
    font-size: 34px;
  }

  .input-panel,
  .result-panel {
    padding: 16px;
  }

  .status-strip span,
  .price-card {
    width: 100%;
  }

  .primary-button {
    min-height: 52px;
  }
}
