/* Tutorial (Perfil › Como usar o app e a página /ajuda) e passeio de primeiro acesso.
   Usa os tokens de styles.css (app) ou de site.css (página pública); os que faltam no site têm valor padrão. */

/* ---------- tutorial ---------- */
.tut-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.tut-toc a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; font-weight: 700; font-size: .88rem; }
.tut { background: var(--surface); border-radius: var(--r-md, 22px); box-shadow: var(--shadow); margin-bottom: 10px; scroll-margin-top: 80px; }
.tut summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.tut summary::-webkit-details-marker { display: none; }
.tut-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.35rem; flex-shrink: 0; }
.tut-ico.t-right { background: var(--right-soft); }
.tut-ico.t-left { background: var(--left-soft); }
.tut-ico.t-xixi { background: var(--xixi-soft); }
.tut-ico.t-sleep, .tut-ico.t-brand { background: var(--brand-soft); }
.tut-ico.t-coco { background: var(--coco-soft, #f6e9de); }
.tut-head { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tut-head strong { font-family: var(--display); font-weight: 700; font-size: 1.08rem; line-height: 1.2; }
.tut-chev { color: var(--muted); font-size: 1.5rem; line-height: 1; transition: transform .15s; }
.tut[open] .tut-chev { transform: rotate(90deg); }
.tut-path { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.tut-path span { background: var(--surface-2); border-radius: 99px; padding: 2px 9px; }
.tut-path i { font-style: normal; opacity: .7; }
.tut-body { padding: 0 16px 16px; }
.tut-body > p { margin: 0 0 10px; }
.tut-body ol { margin: 0 0 12px; padding-left: 22px; }
.tut-body li { margin-bottom: 8px; }
.tut-body li::marker { color: var(--brand); font-weight: 800; }
.tut-tip { background: var(--surface-2); border-radius: 14px; padding: 10px 12px; font-size: .9rem; margin: 0 0 12px; }
.tut-go { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tut-go .btn { width: auto; padding: 10px 16px; min-height: 0; font-size: .92rem; margin: 0; }
.tut-sub { font-family: var(--display); font-weight: 700; font-size: 1.2rem; margin: 24px 4px 10px; }
.tut-extras { display: grid; gap: 10px; }
@media (min-width: 720px) { .tut-extras { grid-template-columns: 1fr 1fr; } }
.tut-extra { display: flex; gap: 12px; background: var(--surface); border-radius: var(--r-md, 22px); box-shadow: var(--shadow); padding: 14px 16px; }
.tut-extra > span:first-child { font-size: 1.3rem; }
.tut-extra strong { display: block; }
.tut-extra span span { display: block; color: var(--muted); font-size: .9rem; }

/* atalhos no app */
.help-row { margin-bottom: 14px; }
.tour-again { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--brand-soft); border-radius: var(--r-md, 22px); padding: 12px 16px; margin-bottom: 14px; font-weight: 700; }
.tour-again .bird { width: 40px; height: 40px; }
.tour-again .muted { display: block; font-weight: 600; font-size: .84rem; }
.tour-again .chev { color: var(--muted); font-size: 1.4rem; }

/* ---------- passeio de primeiro acesso ---------- */
.tour {
  border: 0; padding: calc(14px + env(safe-area-inset-top)) 22px calc(18px + env(safe-area-inset-bottom)); background: var(--bg); color: var(--ink);
  width: 100%; max-width: 480px; height: 100%; max-height: 100dvh; margin: 0 auto; display: flex; flex-direction: column;
}
.tour:not([open]) { display: none; }
@media (min-width: 560px) { .tour { height: auto; max-height: 92dvh; margin: auto; border-radius: var(--r-lg, 28px); padding: 18px 26px 22px; } }
.tour::backdrop { background: rgba(28, 24, 40, .55); }
.tour-top { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.tour-top .btn-link { width: auto; padding: 8px 4px; margin: 0; }
.tour-dots { display: flex; gap: 6px; }
.tour-dots i { width: 7px; height: 7px; border-radius: 99px; background: var(--line); transition: width .2s, background .2s; }
.tour-dots i.on { width: 22px; background: var(--brand); }
.tour-slide { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px 0; animation: tour-in .25s ease-out; }
@keyframes tour-in { from { opacity: 0; transform: translateX(14px); } }
.tour-slide h3 { font-family: var(--display); font-weight: 700; font-size: 1.65rem; line-height: 1.15; margin: 22px 0 8px; }
.tour-slide p { margin: 0 0 14px; color: var(--muted); font-size: 1.03rem; max-width: 34ch; }
.tour-slide .tut-path { justify-content: center; font-size: .84rem; }
.tour-slide .tut-path span { background: var(--brand-soft); color: var(--brand); }
.tour-nav { display: flex; gap: 10px; }
.tour-nav .btn { flex: 1; margin: 0; }
.tour-more { margin: 10px auto 0; display: block; width: auto; }

/* ilustrações */
.tart { width: 100%; max-width: 300px; min-height: 190px; display: flex; align-items: center; justify-content: center; position: relative; }
.tart-bird .bird { width: 170px; height: 170px; animation: tour-bob 2.4s ease-in-out infinite; }
@keyframes tour-bob { 50% { transform: translateY(-8px) rotate(-3deg); } }
.tart-bird.done .bird { width: 130px; height: 130px; }
.tart-stars { position: absolute; top: 18px; right: 60px; font-size: 2rem; }
.tart-actrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.tart-actrow .act { height: 92px; pointer-events: none; }
.tart-list, .tart-grid, .tart-moments, .tart-share, .tart-perfil { background: var(--surface); border-radius: var(--r-md, 22px); box-shadow: var(--shadow); padding: 12px; }
.tart-list { flex-direction: column; gap: 8px; align-items: stretch; }
.tart-row { display: flex; align-items: center; gap: 10px; text-align: left; font-size: .9rem; }
.tart-row strong { display: block; font-size: .9rem; }
.tart-row em { font-style: normal; color: var(--muted); font-size: .8rem; }
.tart-row b { font-size: .85rem; }
.tart-ico { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: .9rem; flex-shrink: 0; }
.tart-ico.e { background: var(--left-soft); color: var(--left); }
.tart-ico.x { background: var(--xixi-soft); }
.tart-ico.z { background: var(--brand-soft); color: var(--brand); }
.tart-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tart-area { display: flex; flex-direction: column; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 16px; padding: 12px 4px; font-size: .76rem; font-weight: 800; }
.tart-area span { font-size: 1.5rem; }
.tart-moments { background: none; box-shadow: none; gap: 0; }
.tart-pol { width: 96px; background: var(--surface); box-shadow: var(--shadow); border-radius: 14px; padding: 8px 8px 10px; font-size: .76rem; font-weight: 800; display: flex; flex-direction: column; gap: 6px; }
.tart-pol span { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; font-size: 2.2rem; background: var(--xixi-soft); }
.tart-pol.p0 { transform: rotate(-7deg) translateY(6px); margin-right: -10px; }
.tart-pol.p1 { transform: translateY(-6px); z-index: 1; }
.tart-pol.p1 span { background: var(--right-soft); }
.tart-pol.p2 { transform: rotate(7deg) translateY(6px); margin-left: -10px; }
.tart-pol.p2 span { background: var(--left-soft); }
.tart-share { gap: 6px; justify-content: space-around; }
.tart-who { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 88px; }
.tart-circ { width: 56px; height: 56px; border-radius: 99px; background: var(--brand-soft); display: grid; place-items: center; font-size: 1.6rem; }
.tart-who strong { font-size: .85rem; }
.tart-who em { font-style: normal; font-size: .72rem; color: var(--muted); }
.tart-perfil { gap: 14px; }
.tart-perfil .avatar { flex-shrink: 0; }
.tart-menu { display: flex; flex-direction: column; flex: 1; text-align: left; }
.tart-menu span { display: flex; justify-content: space-between; padding: 8px 2px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: .88rem; }
.tart-menu span:last-child { border-bottom: 0; }
.tart-menu i { font-style: normal; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .tart-bird .bird, .tour-slide { animation: none; } }
.tour :focus:not(:focus-visible) { outline: none; }
.tour-slide:focus { outline: none; }
.tut-solo { padding: 0; } .tut-solo ol { padding-left: 20px; }
