:root {
  --bg: #faf7f2;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --line: #e8e0d4;
  --accent: #2d6a4f;
  --accent-soft: #d8f3dc;
  --warm: #bc6c25;
  --warm-soft: #faedcd;
  --danger: #9b2226;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(26, 26, 26, 0.06);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, #fff3d6 0%, transparent 40%),
    radial-gradient(circle at top right, #d8f3dc 0%, transparent 35%),
    var(--bg);
  line-height: 1.55;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  padding: 1.25rem 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #52b788);
  color: white;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
}
.brand small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: 0.78rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--warm-soft);
  color: #6b3e12;
  border: 1px solid #f0d7a8;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.hero {
  padding: 1.5rem 0 1rem;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.hero p.lead {
  margin: 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
}
.disclaimer {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: #fff8e8;
  border: 1px solid #f0d7a8;
  border-radius: var(--radius);
  color: #6b3e12;
  font-size: 0.92rem;
}

.grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.25rem;
  padding: 0.5rem 0 2rem;
}
@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.card h2 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
}

label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0.85rem 0 0.35rem;
}
label:first-of-type { margin-top: 0; }

input[type="text"],
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: 2px solid #95d5b2;
  border-color: var(--accent);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 600px) {
  .row { grid-template-columns: 1fr; }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

button, .btn {
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: #1b4332; }
.btn-secondary {
  background: var(--accent-soft);
  color: #1b4332;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}
.btn-link {
  background: var(--warm);
  color: white;
  text-decoration: none;
}
.btn-link:hover { background: #9c5414; text-decoration: none; }

.hint {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.output-empty {
  color: var(--muted);
  padding: 1.5rem 0.5rem;
  text-align: center;
}
.output-empty strong { color: var(--ink); }

.block {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.block:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.block h3 {
  margin: 0;
  font-size: 0.98rem;
}
.copy-btn {
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: #f4f1ea;
  color: var(--ink);
  border: 1px solid var(--line);
  font-weight: 600;
}
.copy-btn.copied {
  background: var(--accent-soft);
  color: #1b4332;
  border-color: #95d5b2;
}

.list {
  margin: 0;
  padding-left: 1.1rem;
}
.list li { margin: 0.35rem 0; }
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.tag {
  background: #f4f1ea;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.85rem;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  white-space: pre-wrap;
  background: #faf8f4;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem;
}

.offers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 0.5rem 0 2rem;
}
@media (max-width: 800px) {
  .offers { grid-template-columns: 1fr; }
}
.offer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
}
.offer h3 { margin: 0 0 0.4rem; font-size: 1rem; }
.offer p { margin: 0 0 0.85rem; color: var(--muted); font-size: 0.92rem; }
.offer .note {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.55rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0.75rem;
}
.disclosure {
  font-size: 0.82rem;
  max-width: 70ch;
}
