/* Seoly.io — individual tool page layout */

.tool-hero { position: relative; overflow: hidden; padding: clamp(36px,5vw,56px) 0 8px; }
.tool-hero .crumb { margin-bottom: 22px; }
.tool-head { display: flex; align-items: flex-start; gap: 18px; }
.tool-head .ico { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.tool-head .ico svg { width: 30px; height: 30px; }
.tool-head h1 { font-size: clamp(28px,3.6vw,40px); letter-spacing: -0.03em; }
.tool-head p { color: var(--muted); font-size: 16.5px; margin-top: 8px; max-width: 620px; line-height: 1.55; }
.tool-tags { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* the interactive shell */
.tool-shell { margin-top: 34px; padding: clamp(20px,3vw,32px); }
.tool-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px){ .tool-grid2 { grid-template-columns: 1fr; } }
.io-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; gap: 12px; }
.io-head .label { margin: 0; }
.tool-textarea { width: 100%; min-height: 260px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); font-size: 15px; line-height: 1.7; resize: vertical; transition: border-color .2s, box-shadow .2s; }
.tool-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb),0.12); background: var(--card); }
.tool-textarea.mono { font-family: var(--mono); font-size: 13.5px; }

/* stat chips row */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px,1fr)); gap: 12px; }
.stat-chip { background: var(--bg-soft); border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; text-align: center; }
.stat-chip b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); line-height: 1; }
.stat-chip span { font-size: 12.5px; color: var(--muted); margin-top: 6px; display: block; }

.tool-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; align-items: center; }
.btn-icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); transition: all .18s; }
.btn-icon:hover { border-color: var(--accent); color: var(--accent); }
.copied-toast { font-size: 13px; font-weight: 600; color: var(--success); display: none; align-items: center; gap: 6px; }
.copied-toast.show { display: inline-flex; }

/* result/output box */
.out-box { min-height: 260px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-soft); font-family: var(--mono); font-size: 13.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; overflow: auto; color: var(--ink); }
.out-box.error { border-color: #E11D48; color: #E11D48; background: rgba(244,63,94,0.06); }
.out-ok { border-color: rgba(16,185,129,0.5); }

/* content sections */
.tool-content { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
@media (max-width: 940px){ .tool-content { grid-template-columns: 1fr; } }
.prose h2 { font-size: 26px; letter-spacing: -0.02em; margin-bottom: 16px; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose p { color: var(--ink-2); font-size: 16px; line-height: 1.7; margin-bottom: 14px; }
.prose ul { margin: 0 0 16px; padding-left: 4px; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.prose ul li { display: flex; gap: 11px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.prose ul li svg { width: 20px; height: 20px; color: var(--success); flex: none; margin-top: 2px; }

.howto { display: flex; flex-direction: column; gap: 14px; margin: 8px 0 8px; }
.howto-step { display: flex; gap: 16px; align-items: flex-start; }
.howto-num { width: 38px; height: 38px; border-radius: 11px; background: rgba(var(--accent-rgb),0.1); color: var(--accent); font-weight: 800; display: grid; place-items: center; flex: none; }
.howto-step h4 { font-size: 16px; font-weight: 700; }
.howto-step p { font-size: 14.5px; color: var(--muted); margin-top: 3px; margin-bottom: 0; }

.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px){ .benefit-grid { grid-template-columns: 1fr; } }
.benefit { padding: 20px; }
.benefit .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 12px; }
.benefit h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.benefit p { font-size: 14px; color: var(--muted); line-height: 1.55; margin: 0; }

/* sidebar */
.tool-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.aside-card { padding: 22px; }
.aside-card h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--faint); margin-bottom: 14px; }
.aside-link { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; transition: background .16s; }
.aside-link:hover { background: var(--bg-soft); }
.aside-link .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.aside-link span { font-weight: 600; font-size: 14.5px; }
.aside-link .a-cat { margin-left: auto; font-size: 11.5px; color: var(--faint); font-weight: 500; }

.ad-slot { border: 1px dashed var(--line); border-radius: var(--radius); background: var(--bg-soft); padding: 28px 18px; text-align: center; color: var(--faint); font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; }

/* segmented control */
.seg { display: inline-flex; background: var(--bg-softer); border-radius: 11px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { padding: 8px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: all .16s; }
.seg button.on { background: var(--card); color: var(--accent); box-shadow: var(--shadow-sm); }

/* range + field rows */
.field-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.range { width: 100%; -webkit-appearance: none; appearance: none; height: 6px; border-radius: 99px; background: var(--bg-softer); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); cursor: pointer; box-shadow: var(--shadow-md); border: 3px solid var(--card); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 3px solid var(--card); }

.result-big { font-size: clamp(40px,6vw,64px); font-weight: 800; letter-spacing: -0.03em; color: var(--accent); line-height: 1; }
.toggle-line { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.toggle-line:last-child { border-bottom: 0; }
.toggle-line span { font-size: 14.5px; font-weight: 500; }
.switch { width: 44px; height: 26px; border-radius: 99px; background: var(--bg-softer); position: relative; transition: background .2s; flex: none; cursor: pointer; }
.switch::after { content:''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .2s; }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(18px); }
