/* Word Counter — app-specific styles. Shared tokens/components come from ../styles.css
   (dropped beside this app by the build). Only add what the tool itself needs. */
.wrap { max-width: 880px; padding-bottom: 48px; position: relative; z-index: 1; }

/* Warm peach hue rising from the bottom-left, painted behind the content
   (z-index:-1) over the light gray body — matches Merge/Compress PDF. The white
   cards sit on top of it, so only the page background is tinted, not the cards. */
body.shell::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(65% 60% at 0% 100%, rgba(237, 131, 54, .55), rgba(246, 181, 69, .22) 45%, transparent 78%),
    radial-gradient(38% 36% at 100% 100%, rgba(246, 181, 69, .20), transparent 70%);
}

/* --- Stats row --- */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px;
  margin-top: 20px;
}
.stat {
  background: var(--line); border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 16px; text-align: center; box-shadow: var(--shadow);
}
.stat-num {
  display: block; font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700;
  font-size: clamp(22px, 4vw, 30px); color: var(--accent); line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.stat-label { display: block; color: var(--muted); font-size: 12.5px; margin-top: 4px; }

/* --- Editor --- */
.editor-wrap { margin-top: 18px; }
.editor {
  width: 100%; min-height: 360px; resize: vertical;
  background: var(--surface); color: var(--text); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px; font: inherit; font-size: 15.5px; line-height: 1.6;
  box-shadow: var(--shadow); transition: border-color .15s ease, box-shadow .15s ease;
}
.editor:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.editor-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 12px; flex-wrap: wrap;
}
.editor-toolbar .hint { color: var(--muted); font-size: 13px; }

.btn-ghost {
  background: linear-gradient(135deg, #f6b545, var(--amber));
  color: #2a1500; font-weight: 700; border-color: transparent;
  box-shadow: 0 2px 12px rgba(237,131,54,.4); cursor: pointer;
}
.btn-ghost:hover { background: linear-gradient(135deg, #ffc25e, #f08c3c); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }

/* --- Privacy footer --- */
.privacy {
  margin-top: 30px; padding-top: 18px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.privacy .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.privacy .dot.good { background: var(--good); box-shadow: 0 0 0 3px rgba(74, 222, 128, .2); }
