:root {
  --bg: #f6f3ed;
  --card: #ffffff;
  --text: #171717;
  --muted: #5f5a52;
  --line: #ddd6ca;
  --accent: #0e6b63;
  --accent-dark: #0a4e48;
  --shadow: 0 14px 34px rgba(0,0,0,.07);
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8f5ef 0%, var(--bg) 100%);
}
.wrap {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 24px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
}
.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.status {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 14px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 20px;
  padding: 28px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
h1 {
  margin: 0 0 14px;
  font-size: clamp(36px, 6vw, 64px);
  line-height: .95;
  letter-spacing: -.04em;
}
.subhead {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}
.hero-actions, .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.btn {
  appearance: none;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:active { background: var(--accent-dark); }
.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--line);
}
.hero-side {
  display: grid;
  gap: 12px;
}
.metric {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #fcfbf8;
}
.metric-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}
.metric strong {
  font-size: 28px;
  letter-spacing: -.03em;
}
.features {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  margin-top: 22px;
}
.feature {
  padding: 22px;
}
.feature h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}
.tool-card {
  margin-top: 22px;
  padding: 22px;
}
.tool-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
}
.tool-head h2 {
  margin: 4px 0 0;
  font-size: 28px;
  letter-spacing: -.03em;
}
.note {
  color: var(--muted);
  font-size: 14px;
}
.grid.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  margin-top: 16px;
}
label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  padding: 14px;
  font: inherit;
}
textarea {
  min-height: 170px;
  resize: vertical;
}
.output {
  min-height: 180px;
  border: 1px solid var(--line);
  background: #fbfaf7;
  border-radius: 14px;
  padding: 16px;
  white-space: pre-wrap;
  line-height: 1.6;
}
.footer {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 24px 0 8px;
}
@media (max-width: 900px) {
  .hero, .features, .grid.two { grid-template-columns: 1fr; }
  .tool-head, .topbar { flex-direction: column; align-items: flex-start; }
}
