:root {
  --bg: #f4f0e8;
  --paper: #fffaf2;
  --ink: #211b16;
  --accent: #0d6f63;
  --muted: #6f645a;
  --border: #d8cdbf;
  --success: #1f7a44;
  --error: #a52828;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, #efe2cd 0%, transparent 40%),
    radial-gradient(circle at 90% 90%, #d8eadf 0%, transparent 35%),
    var(--bg);
}

.shell {
  max-width: 860px;
  margin: 2rem auto;
  padding: 1rem;
}

header h1 {
  margin: 0.2rem 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.brand-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 0.3rem;
}

.kicker {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
  font-weight: 700;
  font-size: 0.8rem;
}

.subtitle {
  margin-top: 0.3rem;
  color: var(--muted);
}

.flowline {
  margin: 0.4rem 0 0;
  color: var(--accent);
  font-weight: 700;
}

.trust {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  margin-top: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.hint {
  margin: -0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

form {
  display: grid;
  gap: 0.9rem;
}

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

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

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

textarea,
input,
select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem;
  background: #fff;
}

button {
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.05);
}

.primary-cta {
  padding: 0.95rem 1.2rem;
  font-size: 1.03rem;
  letter-spacing: 0.01em;
}

.result-item pre,
.results pre {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  margin: 0.35rem 0 0;
  padding: 0.75rem;
  background: #f8f4ec;
  border-radius: 8px;
  min-height: 110px;
  max-width: 100%;
  overflow-x: auto;
}

.label {
  margin: 0.5rem 0 0.2rem;
  font-size: 0.85rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.result-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.result-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem;
  background: #fff;
}

.status {
  margin: 0;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.status.success {
  color: var(--success);
  background: #e8f5ed;
  border: 1px solid #bee4cb;
}

.status.error {
  color: var(--error);
  background: #fceaea;
  border: 1px solid #f2c9c9;
}

.inline-form {
  align-items: end;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.chip {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.88rem;
  font-weight: 600;
}

.chip-link {
  display: inline-block;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.chip-link:hover {
  text-decoration: underline;
}

.contact-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.4rem;
}

.contact-list a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.contact-list a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }
}
