/* Free tools pages. Builds on style.css and landing.css. */
.tool-hero { padding: 3rem 0 1rem; } .tool-hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: .2rem 0 .6rem; }
.tool-hero .lede { margin: 0; }
.tool-body { display: grid; gap: 1.5rem; padding: 1.5rem 0 2.5rem; }
@media (min-width: 940px) { .tool-body { grid-template-columns: 1.5fr 1fr; align-items: start; } }
.tool-card-main { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 1.6rem; box-shadow: var(--shadow-lg); }
.tool-card-main textarea { font-size: 1rem; }
.tool-cta { background: linear-gradient(160deg, var(--accent-soft), var(--surface)); border: 1px solid var(--line); border-radius: 22px; padding: 1.5rem; }
.tool-cta h2 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin-bottom: .5rem; } .tool-cta p { color: var(--muted); }
.tool-copy { padding-bottom: 4rem; max-width: 760px; }
.tool-copy h2 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin: 2rem 0 .5rem; } .tool-copy p { color: var(--muted); }
.tool-copy details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 1.1rem; margin: .5rem 0; }
.tool-copy summary { cursor: pointer; padding: .9rem 0; font-weight: 500; }
.tool-copy details p { margin: 0 0 1rem; }
.more-tools { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 2rem; }
.chip-link { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: .45rem 1rem; text-decoration: none; font-weight: 500; font-size: .9rem; }
.chip-link:hover { border-color: var(--accent); }
.tool-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tool-card { display: block; background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem; text-decoration: none; color: var(--ink); transition: transform .3s var(--spring), border-color .2s; }
.tool-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.tool-card h2 { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin-bottom: .3rem; } .tool-card p { color: var(--muted); font-size: .92rem; margin: 0 0 .6rem; } .tool-card span { color: var(--accent); font-weight: 500; }
.pick-stage { text-align: center; padding: .6rem 0; }
.pick-stage .demo-name { font-size: clamp(3rem, 12vw, 5.6rem); }
.timer-stage { text-align: center; }
.timer-stage:fullscreen, .timer-stage.fakefull { background: var(--bg); display: grid; align-content: center; padding: 2rem; }
.timer-stage.fakefull { position: fixed; inset: 0; z-index: 100; overflow: auto; }
body.fs-lock { overflow: hidden; }
.timer-ring { position: relative; width: min(80vw, 340px); aspect-ratio: 1; margin: 0 auto; }
.timer-stage:fullscreen .timer-ring, .timer-stage.fakefull .timer-ring { width: min(72vh, 86vw); }
.timer-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.timer-ring circle { fill: none; stroke-width: 5; } .timer-ring .bg { stroke: var(--line); }
.timer-ring .fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 276.5; stroke-dashoffset: calc(276.5 * (1 - var(--p, 1))); transition: stroke-dashoffset .4s linear; }
.timer-read { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-size: clamp(3.4rem, 14vw, 5.6rem); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.timer-stage:fullscreen .timer-read, .timer-stage.fakefull .timer-read { font-size: min(21vh, 21vw); }
.timer-stage.done .timer-read { color: var(--warn); animation: pulse2 1s infinite; }

/* wheel, dice, stopwatch */
.wheel-stage { text-align: center; }
.wheel-wrap { position: relative; width: min(100%, 460px); margin: .5rem auto 1rem; }
.wheel-wrap canvas { width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; box-shadow: var(--shadow-lg); background: var(--surface-2); }
.wheel-pointer { position: absolute; top: -6px; left: 50%; width: 0; height: 0; transform: translateX(-50%); border-left: 15px solid transparent; border-right: 15px solid transparent; border-top: 30px solid var(--ink); filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); }
#winner { min-height: 1.2em; margin: .2rem 0 1rem; }
.dice-row { display: flex; flex-wrap: wrap; gap: .8rem; min-height: 5.5rem; align-items: center; }
.die { display: grid; place-items: center; width: 4.6rem; height: 4.6rem; border-radius: 16px; background: var(--surface-2); border: 2px solid var(--accent); color: var(--accent); font-family: var(--serif); font-size: 2.2rem; box-shadow: var(--shadow-sm); animation: dieRoll .55s var(--spring) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes dieRoll { from { transform: rotate(-200deg) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.dice-sum { font-family: var(--serif); font-size: 2rem; margin: .8rem 0; }
.stopwatch-read { font-family: var(--serif); font-variant-numeric: tabular-nums; font-size: clamp(3.2rem, 14vw, 6rem); letter-spacing: -.03em; text-align: center; }
.timer-stage:fullscreen .stopwatch-read, .timer-stage.fakefull .stopwatch-read { font-size: min(24vh, 18vw); }
.laps { list-style: none; padding: 0; margin: 1rem auto 0; max-width: 360px; text-align: left; max-height: 240px; overflow-y: auto; }
.laps li { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem .2rem; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }

/* guides */
.guide { max-width: 760px; padding: 3rem 0 3rem; }
.guide h1 { font-size: clamp(2rem, 5.5vw, 3rem); margin: .2rem 0 .8rem; }
.guide .lede { margin: 0 0 1.5rem; }
.guide-body h2 { font-family: var(--serif); font-weight: 500; font-size: 1.55rem; margin: 2.2rem 0 .6rem; }
.guide-body p { font-size: 1.05rem; line-height: 1.7; margin: 0 0 1rem; color: var(--ink); }
.guide-cta { background: linear-gradient(160deg, var(--accent-soft), var(--surface)); border: 1px solid var(--line); border-radius: 22px; padding: 1.4rem 1.5rem; margin: 2.4rem 0 1rem; }
.guide-cta p { margin: 0 0 1rem; color: var(--ink); }

.guide-body .helpq { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 1.1rem; margin: .5rem 0; }
.guide-body .helpq summary { cursor: pointer; padding: .9rem 0; font-weight: 500; }
.guide-body .helpq p { margin: 0 0 1rem; color: var(--muted); font-size: 1rem; }
