/* Slug Generator — tool styles on the shared design (site/assets/site.css, Docs/DESIGN_SYSTEM.md v2).
   Colours come from the shared tokens. Layout follows the original tool. */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

main { width: min(100% - 32px, 980px); margin: 0 auto; }
.hero { text-align: center; padding: 48px 0 24px; }
.eyebrow, .kicker { color: var(--violet); font-size: .75rem; font-weight: 800; letter-spacing: .13em; }
.eyebrow { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--violet-soft); color: var(--violet-ink); }
h1 { font-size: clamp(2.35rem, 6vw, 3.8rem); line-height: 1.08; letter-spacing: -.04em; margin: 18px 0 12px; }
h1 span { color: var(--violet); }
.hero p { max-width: 620px; margin: auto; color: var(--muted); font-size: 1.05rem; }

/* In-page section links */
.page-sections { margin: 0 auto 24px; }
.page-sections ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; }
.page-sections a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--violet); font-weight: 600; text-decoration: none; background: var(--surface); border: 1px solid var(--line); }
.page-sections a:hover { background: var(--violet-soft); color: var(--violet-ink); }

/* Tool card */
.tool-card { position: relative; max-width: 780px; margin: auto; padding: clamp(22px, 4vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 55px rgba(15, 23, 42, .07); }
.tool-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; border-radius: 20px 20px 0 0; background: linear-gradient(90deg, var(--primary), var(--violet), var(--teal)); }
.tool-card-head { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 25px; }
.tool-card-head .kicker { margin: 0 0 4px; }
h2 { margin: 0; line-height: 1.25; letter-spacing: -.02em; font-size: clamp(1.5rem, 3vw, 2rem); }
.pill { height: max-content; white-space: nowrap; padding: 5px 10px; color: var(--teal-ink); background: var(--teal-soft); border-radius: 99px; font-size: .78rem; font-weight: 700; }

/* Form */
label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 8px; }
textarea, select { width: 100%; border: 1px solid var(--field-line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; }
textarea { resize: vertical; min-height: 105px; padding: 14px; }
select { padding: 12px; min-height: 44px; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0 12px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 15px 0 24px; font-weight: 500; color: var(--ink); }
.check input { flex: none; accent-color: var(--primary); width: 18px; height: 18px; } /* Stage 7: flex: none keeps it square next to a wrapping label */

/* Result */
.result-head { display: flex; justify-content: space-between; gap: 12px; }
.result-head label { margin-bottom: 8px; }
#charCount { font-size: .8rem; color: var(--muted); }
.output { display: flex; align-items: stretch; gap: 10px; padding: 10px; border: 1px solid var(--line); border-left: 4px solid var(--teal); background: var(--teal-soft); border-radius: 13px; }
.output output { flex: 1; min-width: 0; align-self: center; overflow-wrap: anywhere; padding: 5px 7px; color: var(--ink); font: .93rem/1.5 ui-monospace, Consolas, monospace; }
.output button { align-self: center; border: 0; border-radius: 12px; min-height: 44px; padding: 11px 14px; background: var(--primary); color: #FFFFFF; font: inherit; font-size: .88rem; font-weight: 750; cursor: pointer; white-space: nowrap; }
.output button:hover:not(:disabled) { background: var(--primary-hover); }
.output button:active:not(:disabled) { background: var(--primary-hover); }
.output button:disabled { background: var(--disabled-bg); color: var(--disabled-ink); cursor: not-allowed; }
.status { min-height: 22px; margin: 7px 0 15px; color: var(--muted); font-size: .82rem; }
.preview { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 13px; border-radius: 11px; background: var(--bg); border: 1px solid var(--line); }
.preview span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.preview code { color: var(--ink); overflow-wrap: anywhere; font-size: .82rem; }
.text-button { display: block; min-height: 44px; margin: 14px auto 0; padding: 6px 10px; border: 0; background: transparent; color: var(--violet); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Benefits and content */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 46px 0 65px; }
.benefits article { padding: 20px; border: 1px solid var(--line); border-top: 4px solid var(--teal); border-radius: 16px; background: var(--surface); box-shadow: 0 8px 28px rgba(49, 85, 217, .08); }
.benefit-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--teal-soft); color: var(--teal-ink); box-shadow: inset 0 0 0 1px rgba(39, 185, 177, .35); } /* Stage 7: same tile as the homepage card icons (.st-card-icon) */
.benefit-icon svg { width: 24px; height: 24px; }
.benefits h3 { margin: 12px 0 4px; font-size: 1rem; }
.benefits p, .content li, .content details p { color: var(--muted); font-size: .91rem; }
.benefits p { margin: 0; }
.content { max-width: 780px; margin: 0 auto 60px; }
.content .kicker { margin-bottom: 9px; }
.content ol { padding-left: 23px; display: grid; gap: 12px; }
.content li b { color: var(--ink); }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-top: 10px; padding: 15px 17px; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; }

@media (max-width: 650px) {
  main { width: min(100% - 22px, 980px); }
  .hero { padding: 32px 0 20px; }
  .options, .benefits { grid-template-columns: 1fr; }
  .benefits { gap: 11px; margin: 28px 0 50px; }
  .output { flex-direction: column; }
  .output button { width: 100%; }
}
@media (forced-colors: active) { .tool-card::before { background: CanvasText; } }
