:root {
  --bg: #f4efe7;
  --panel: rgba(255, 252, 246, 0.86);
  --ink: #1e2430;
  --muted: #5f6877;
  --accent: #1a7f64;
  --accent-strong: #125b47;
  --accent-soft: #d5efe7;
  --border: rgba(30, 36, 48, 0.12);
  --shadow: 0 24px 60px rgba(30, 36, 48, 0.14);
  --danger: #b33c2e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(26, 127, 100, 0.18), transparent 34%),
    radial-gradient(circle at bottom right, rgba(196, 156, 91, 0.22), transparent 28%),
    linear-gradient(135deg, #efe5d5, var(--bg));
  display: grid;
  place-items: center;
  padding: 24px;
}

.hub {
  width: min(100%, 980px);
  display: grid;
  gap: 24px;
}

.hub-hero,
.tool-card,
.not-found {
  border: 1px solid var(--border);
  background: rgba(255, 252, 246, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hub-hero {
  padding: 36px 34px;
  border-radius: 28px;
}

.hub-lead {
  max-width: 62ch;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 1.05rem;
}

.tool-grid {
  display: grid;
  gap: 18px;
}

.tool-card {
  padding: 28px;
  border-radius: 24px;
}

.tool-card h2 {
  margin: 0 0 12px;
  font-size: clamp(1.6rem, 2vw, 2.1rem);
}

.tool-card p {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  line-height: 1.65;
}

.tool-kicker {
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--accent-strong);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  opacity: 0.8;
  margin: 0 0 14px;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 0.95;
  font-weight: 700;
}

.shell {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(18px);
}

.intro,
.panel {
  padding: 32px;
}

.intro {
  background:
    linear-gradient(160deg, rgba(17, 66, 53, 0.95), rgba(26, 127, 100, 0.88)),
    linear-gradient(0deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06));
  color: #f8f5ef;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
}

.intro p {
  margin: 0;
  max-width: 34ch;
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(248, 245, 239, 0.86);
}

.notes {
  display: grid;
  gap: 12px;
}

.note {
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  line-height: 1.45;
}

.panel {
  background: var(--panel);
  display: grid;
  gap: 22px;
}

.output {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  background: #fffdfa;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.output input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.1rem;
  font-family: "Consolas", "Courier New", monospace;
}

button,
.button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease, background 160ms ease;
}

button:hover,
.button:hover {
  transform: translateY(-1px);
}

.copy-btn,
.generate-btn,
.button {
  background: var(--accent);
  color: #fff;
}

.copy-btn:hover,
.generate-btn:hover,
.button:hover {
  background: var(--accent-strong);
}

.range-wrap,
.checks,
.status {
  display: grid;
  gap: 12px;
}

.range-row,
.topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.length-pill,
.strength-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 0.95rem;
  white-space: nowrap;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.checks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label.option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

label.option span {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.35;
}

.meter {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(30, 36, 48, 0.08);
}

.meter-bar {
  height: 100%;
  width: 0;
  background: var(--danger);
  transition: width 180ms ease, background 180ms ease;
}

.helper,
.not-found p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
  font-weight: 600;
}

.ghost-btn {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.7);
}

.feedback {
  min-height: 1.5em;
  margin: 0;
  color: var(--muted);
}

.not-found {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 32px 28px;
  border-radius: 14px;
}

@media (max-width: 820px) {
  .shell,
  .checks {
    grid-template-columns: 1fr;
  }
}
