/* Free tools: working surfaces. Each tool reads like a calm form, not a poster. */
.tool-main { padding-top: calc(var(--hdr-h) + 8px); min-height: 100vh; }
.tool-head { padding: clamp(28px, 5vw, 64px) 0 clamp(20px, 3vw, 36px); display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; }
.tool-head h1 { font-size: clamp(2.2rem, 1.3rem + 3vw, 3.8rem); font-weight: 700; }
.tool-head p { margin: 10px 0 0; font-size: 1.12rem; max-width: 48ch; line-height: 1.5; }
.tool-head img { width: clamp(90px, 12vw, 150px); height: auto; }
@media (max-width: 640px) { .tool-head { grid-template-columns: 1fr; } .tool-head img { display: none; } }

/* hub */
.hub-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 28px; }
.hub-filter span { font-weight: 800; margin-right: 6px; }
.hub-group { padding: 0 0 clamp(40px, 6vw, 72px); }
.hub-group__head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.hub-group__head img { width: 64px; height: auto; }
.hub-group__head h2 { font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.4rem); }
.hub-group__head p { margin: 2px 0 0; color: var(--ink-muted); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--r-lg); background: var(--paper-raised); border: 1px solid var(--line); box-shadow: var(--sc-e1); text-decoration: none; color: var(--ink); transition: transform 160ms var(--sc-ease-out), box-shadow 160ms var(--sc-ease-out); }
@media (hover: hover) and (pointer: fine) { .tile:hover { transform: translateY(-2px); box-shadow: var(--sc-e2); } }
.tile--star { background: var(--star); border-color: var(--ink); box-shadow: var(--sticker); }
.tile h3 { font-size: 1.35rem; }
.tile p { margin: 0; line-height: 1.5; color: var(--ink-muted); }
.tile--star p { color: var(--ink); }
.tile__meta { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 0.88rem; }
.tile__go { text-decoration: underline; text-underline-offset: 0.2em; }
.tile.is-hidden { display: none; }
@media (max-width: 1000px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr; } }

/* stepper forms */
.toolcard { max-width: 760px; margin: 0 auto clamp(48px, 8vw, 96px); background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sc-e2); padding: clamp(20px, 4vw, 40px); }
.steps-dots { display: flex; gap: 8px; margin-bottom: 20px; }
.steps-dots i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.steps-dots i.is-done { background: var(--star); box-shadow: inset 0 0 0 1px var(--honey); }
.q { border: 0; margin: 0; padding: 0; }
.q legend, .q__title { font-family: var(--sc-font-display); font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); margin-bottom: 6px; padding: 0; }
.q__hint { margin: 0 0 18px; color: var(--ink-muted); }
.q .picks { gap: 10px; }
.q .pick { min-height: 52px; padding: 10px 20px; font-size: 1rem; }
.q .pick small { display: block; font-weight: 700; font-size: 0.8rem; color: var(--ink-muted); }
.q .pick[aria-pressed="true"] small, .q .pick[aria-checked="true"] small { color: var(--on-star); }
.q .pick--tall { flex-direction: column; align-items: flex-start; text-align: left; border-radius: var(--r-md); }
.nav-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 800; }
.field input, .field textarea, .field select { min-height: 48px; padding: 10px 14px; border-radius: var(--r-sm); border: 2px solid var(--line-strong); background: #fff; color: var(--ink); font: inherit; }
.field textarea { min-height: 96px; resize: vertical; }
.field small { color: var(--ink-muted); }
.more { margin-top: 18px; }
.more summary { cursor: pointer; font-weight: 800; }
.result { margin-top: 8px; }
.result h2 { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.6rem); }

/* gate */
.gate { text-align: center; display: grid; justify-items: center; gap: 14px; }
.gate img { width: 140px; height: auto; }
.gate p { max-width: 46ch; margin: 0; line-height: 1.55; }

/* feelings */
.faces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.face { display: grid; justify-items: center; gap: 6px; padding: 14px 8px; border-radius: var(--r-md); border: 2px solid var(--line); background: #fff; color: var(--ink); font-weight: 800; cursor: pointer; }
.face svg { width: 56px; height: 56px; }
.face[aria-checked="true"] { border-color: var(--ink); background: var(--star); box-shadow: var(--sticker); }
.pipcard { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: start; }
.pipcard img { width: 110px; height: auto; }
.bubble-big { position: relative; padding: 18px 20px; border-radius: 20px 20px 20px 6px; background: #fff; border: 2px solid var(--honey); font-size: 1.12rem; line-height: 1.55; }
.trythis { margin-top: 16px; padding: 16px 18px; border-radius: var(--r-md); background: var(--meadow-soft); }
.trythis h3 { font-size: 1.25rem; color: var(--meadow); }
.trythis p { margin: 6px 0 0; }
.grownup { margin-top: 18px; border-radius: var(--r-md); background: var(--night); color: var(--on-plum); padding: 18px 20px; }
.grownup summary { cursor: pointer; font-weight: 800; color: var(--star); }
.grownup h4 { margin: 14px 0 4px; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-ink-muted); }
.grownup p { margin: 0; line-height: 1.55; }
.safe-route { padding: 18px 20px; border-radius: var(--r-md); border: 2px solid var(--ink); background: var(--tangerine-soft); }
.safe-route h2 { font-size: 1.6rem; }
.privacy-note { font-size: 0.9rem; color: var(--ink-muted); margin-top: 10px; }
@media (max-width: 560px) { .faces { grid-template-columns: repeat(3, minmax(0, 1fr)); } .face svg { width: 44px; height: 44px; } .pipcard { grid-template-columns: 1fr; } .pipcard img { width: 90px; } }

/* story book */
.book { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sc-e3), 0 0 0 10px #FFFBF2, 0 0 0 11px var(--line); background: #fff; min-height: 440px; }
.book__art { position: relative; background: var(--paper-sunk); }
.book__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.book__art .book__hero { position: absolute; left: 50%; bottom: 6%; width: 34%; height: auto; transform: translateX(-50%); object-fit: contain; }
.book__text { display: flex; flex-direction: column; padding: clamp(22px, 4vw, 44px); background: #FFFDF8; }
.book__text p { font-family: var(--sc-font-display); font-weight: 500; font-size: clamp(1.2rem, 0.95rem + 0.8vw, 1.55rem); line-height: 1.45; margin: 0; }
.book__text h2 { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); margin-bottom: 14px; }
.book__foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.book__page { font-weight: 800; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.book__ctrl { display: flex; gap: 8px; }
.roundbtn { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--paper-raised); color: var(--ink); font-size: 1.3rem; font-weight: 800; cursor: pointer; display: inline-grid; place-items: center; }
.roundbtn[disabled] { opacity: 0.4; cursor: default; }
.roundbtn[aria-pressed="true"] { background: var(--star); border-color: var(--ink); }
.book__after { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; justify-content: center; }
@media (max-width: 760px) { .book { grid-template-columns: 1fr; } .book__art { aspect-ratio: 3 / 2; } }

.pair-card { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; margin-top: 22px; padding: 14px; border-radius: var(--r-md); background: var(--paper-sunk); }
.pair-card img { width: 72px; height: 90px; object-fit: cover; border-radius: 8px; }
.pair-card p { margin: 0; line-height: 1.4; }
@media (max-width: 560px) { .pair-card { grid-template-columns: 60px 1fr; } .pair-card .btn { grid-column: 1 / -1; } }

/* activity result (shared with home) */
.act { margin-top: 8px; border-top: 2px dashed var(--line); padding-top: 20px; }
.act h3 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); }
.act__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.act__meta span { background: var(--paper-sunk); border-radius: var(--r-pill); padding: 4px 12px; font-weight: 800; font-size: 0.85rem; }
.act ol { margin: 10px 0 0; padding-left: 1.3em; display: grid; gap: 6px; }
.act h4 { margin: 14px 0 4px; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.act__need { margin: 0; }
.act__builds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.act__safe { margin: 14px 0 0; padding: 10px 14px; background: var(--tangerine-soft); border-radius: var(--r-sm); font-size: 0.92rem; }
.act__safe strong { color: var(--tangerine); }

/* v2.1 hub: sticker book band */
.tools .moments { margin: 4px 0 28px; }
.tools .moments__title { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.3rem); margin-bottom: 14px; }
.bookband { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; margin: 0 0 clamp(36px, 5vw, 56px); padding: 20px 24px; border-radius: var(--r-lg); background: var(--night-raised); color: var(--on-plum); }
.bookband h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); color: var(--on-plum); }
.bookband p { margin: 6px 0 0; color: var(--night-ink-muted); }
.bookband__stk { display: flex; }
.bookband__stk img { width: 72px; height: auto; margin-left: -14px; transform: rotate(-8deg); }
.bookband__stk img:first-child { margin-left: 0; }
.bookband__stk img:nth-child(2) { transform: rotate(6deg) translateY(-6px); }
@media (max-width: 760px) { .bookband { grid-template-columns: 1fr; } .bookband .btn { justify-self: start; } }
.tile--soon { opacity: 0.78; cursor: default; }
.tile--soon h3 { color: var(--ink); }
.tile__soon { padding: 2px 10px; border-radius: var(--r-pill); background: var(--paper-sunk); color: var(--ink); font-weight: 800; font-size: 0.78rem; }

/* v2.6: right-now / plan-ahead switch on the Activity Generator */
.modes { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 12px; margin: 0 0 18px; }
.modes__on, .modes__link { display: grid; align-content: center; gap: 2px; min-height: 72px; padding: 12px 18px; border-radius: var(--r-lg); color: var(--ink); font-weight: 700; font-size: 0.92rem; line-height: 1.35; }
.modes__on { background: var(--star); box-shadow: inset 0 0 0 2px var(--ink); }
.modes__on strong, .modes__link strong { display: block; font-family: var(--sc-font-display); font-weight: 600; font-size: 1.15rem; }
.modes__link { grid-template-columns: 52px 1fr 28px; align-items: center; column-gap: 12px; background: #E2D8F3; text-decoration: none; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow 160ms; }
.modes__link img { width: 52px; height: auto; }
.modes__link i { font-style: normal; font-weight: 800; font-size: 1.3rem; }
@media (hover: hover) and (pointer: fine) { .modes__link:hover { box-shadow: inset 0 0 0 2px var(--ink); } }
@media (max-width: 640px) { .modes { grid-template-columns: 1fr; } }
.moment--plan { background: #E2D8F3; }
.moment--routine { background: #DDEFD8; }
.moment--coach { background: #FDE0CF; }
