/* Tool pages storyboard film (website-tool-pages#38). Everything is drawn with HTML and CSS; the default state is the
   final frame (no script, reduced motion). With tool-film.js running, .is-playing hides each shot until it is on. */
.tool-film{margin:0}
.tool-film figcaption{margin-top:12px;color:var(--ui-text-muted,#5f6672);font-size:13px;line-height:1.5;text-align:left}
.tool-film-tag{display:inline-block;margin-right:6px;padding:2px 8px;border-radius:999px;background:var(--ui-surface,#f6f7fb);color:var(--brand-black,#171717);font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.tf{position:relative;overflow:hidden;border:1px solid var(--ui-rule,#e8eaf0);border-radius:18px;background:var(--ui-surface,#f6f7fb);box-shadow:0 30px 60px -40px rgba(23,23,23,.4);font:400 13px/1.45 var(--brand-font-body,Inter,sans-serif);color:var(--brand-black,#171717);text-align:left;user-select:none}
.tf-bar{display:flex;align-items:center;gap:6px;height:34px;padding:0 14px;border-bottom:1px solid var(--ui-rule,#e8eaf0);background:var(--brand-white,#fff)}
.tf-bar i{width:9px;height:9px;border-radius:50%;background:var(--ui-rule,#e8eaf0)}
.tf-bar span{margin-left:8px;font-size:12px;font-weight:600}
.tf-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:16px;padding:18px;min-height:300px}
.tf-ask{grid-column:1;align-self:start;padding:12px 14px;border-radius:14px 14px 4px 14px;background:var(--brand-blue,#3264ff);color:var(--brand-white,#fff)}
.tf-ask p{margin:4px 0 0;font-size:13px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden}
.tf-who{font-size:11px;font-weight:600;opacity:.8}
.tf-steps{grid-column:1;align-self:end;margin:0;padding:0;list-style:none}
.tf-steps li{display:flex;align-items:center;gap:8px;padding:7px 0;color:var(--ui-text-muted,#5f6672);font-size:12px}
.tf-steps li::before{content:"";flex:none;width:14px;height:14px;border-radius:50%;background:var(--brand-blue,#3264ff) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='m4 7 2 2 4-4' fill='none' stroke='white' stroke-width='1.6'/%3E%3C/svg%3E") center/contain no-repeat}
.tf-out{grid-column:2;grid-row:1 / span 2;display:flex;flex-direction:column;gap:10px;justify-content:center;min-width:0}
.tf-file{align-self:flex-start;padding:5px 10px;border:1px solid var(--ui-rule,#e8eaf0);border-radius:8px;background:var(--brand-white,#fff);font-size:11px;font-weight:500;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* playback */
.tf [data-shot]{transition:opacity .5s var(--motion-ease,ease),transform .5s var(--motion-ease,ease)}
.tf.is-playing [data-shot]:not(.is-on){opacity:0;transform:translateY(10px)}
.tf.is-playing .tf-out:not(.is-on){transform:scale(.96)}
/* image: a poster */
.tf-poster{position:relative;aspect-ratio:3/4;max-height:250px;margin:0 auto;width:100%;max-width:190px;overflow:hidden;border-radius:10px;background:linear-gradient(160deg,#ffe9a8,#ffb38a 55%,#ff7f7f);display:flex;flex-direction:column;justify-content:flex-end;padding:14px;box-sizing:border-box;box-shadow:0 14px 30px -18px rgba(23,23,23,.5)}
.tf-poster-sun{position:absolute;top:14%;left:50%;width:70px;height:70px;margin-left:-35px;border-radius:50%;background:#fff6dc;opacity:.9}
.tf-poster-dots{position:absolute;inset:0;background:radial-gradient(circle at 20% 30%,#fff 0 3px,transparent 4px),radial-gradient(circle at 80% 22%,#fff 0 2px,transparent 3px),radial-gradient(circle at 70% 55%,#fff 0 3px,transparent 4px);opacity:.7}
.tf-poster-title{position:relative;color:#3a1d12;font:700 20px/1.05 var(--brand-font-heading,sans-serif);letter-spacing:-.01em;overflow-wrap:anywhere}
.tf-poster-sub{position:relative;margin-top:6px;color:#5a2e1c;font-size:10px;line-height:1.3}
/* chat: an answer */
.tf-answer{display:flex;flex-direction:column;gap:8px;padding:14px;border-radius:14px 14px 14px 4px;background:var(--brand-white,#fff);border:1px solid var(--ui-rule,#e8eaf0)}
.tf-line{font-size:12.5px;line-height:1.5}
.tf-line:first-child{font-weight:600}
/* photo: before and after */
.tf-photo{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:0;overflow:hidden;border-radius:10px;aspect-ratio:4/3;box-shadow:0 14px 30px -18px rgba(23,23,23,.5)}
.tf-scene{position:relative;overflow:hidden;background:linear-gradient(#ffd7a8,#ffb08a 55%)}
.tf-scene--after{background:linear-gradient(#ffdcae,#ffb894 55%)}
.tf-sun{position:absolute;left:50%;top:26%;width:34px;height:34px;margin-left:-17px;border-radius:50%;background:#fff3d6}
.tf-sea{position:absolute;left:0;right:0;top:48%;height:22%;background:#5b8fd6}
.tf-sand{position:absolute;left:0;right:0;bottom:0;height:32%;background:#f1d9ae}
.tf-person{position:absolute;bottom:18%;width:9px;height:26px;border-radius:5px 5px 2px 2px;background:#3a3f4a}
.tf-person::before{content:"";position:absolute;top:-9px;left:0;width:9px;height:9px;border-radius:50%;background:inherit}
.tf-person--me{left:28%;height:32px;background:#244a8f}
.tf-person--x1{left:70%;width:7px;height:20px;background:#6b6f78}
.tf-person--x2{left:80%;width:7px;height:21px;background:#6b6f78}
.tf-scene em{position:absolute;left:8px;top:8px;padding:2px 7px;border-radius:999px;background:rgba(255,255,255,.85);font-size:10px;font-style:normal;font-weight:600}
.tf-split{position:absolute;left:50%;top:0;bottom:0;width:2px;margin-left:-1px;background:#fff}
/* story: a page */
.tf-page{display:flex;flex-direction:column;gap:8px;padding:18px;border-radius:6px;background:#fffdf7;border:1px solid #efe7d6;box-shadow:0 14px 30px -20px rgba(23,23,23,.45);font-family:Georgia,"Times New Roman",serif}
.tf-page b{font-size:16px}
.tf-para{font-size:12px;line-height:1.55;color:#3a3a3a}
/* slides */
.tf-slides{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.tf-slide{display:flex;flex-direction:column;gap:5px;aspect-ratio:16/10;padding:9px;border-radius:6px;background:var(--brand-white,#fff);border:1px solid var(--ui-rule,#e8eaf0);box-sizing:border-box;overflow:hidden}
.tf-slide b{font-size:10px;line-height:1.2;overflow-wrap:anywhere}
.tf-slide i{display:block;height:4px;border-radius:2px;background:var(--ui-rule,#e8eaf0)}
.tf-slide i:last-child{width:60%}
.tf-slide--cover{background:#18325f;border-color:#18325f}
.tf-slide--cover b{color:#fff;font-size:11px}
.tf-slide--cover i{background:rgba(255,255,255,.3)}
/* logo directions */
.tf-logos{display:grid;gap:8px}
.tf-logo{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;padding:10px 12px;border-radius:10px;background:var(--brand-white,#fff);border:1px solid var(--ui-rule,#e8eaf0)}
.tf-logo b{font:700 14px/1.1 var(--brand-font-heading,sans-serif);letter-spacing:-.01em;overflow-wrap:anywhere}
.tf-logo small{grid-column:2;color:var(--ui-text-muted,#5f6672);font-size:10px}
.tf-mark{grid-row:1 / span 2;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#2f6f6a}
.tf-mark i{width:16px;height:12px;border-radius:8px 8px 4px 4px;background:#f4c45a}
.tf-logo--1 .tf-mark{display:none}
.tf-logo--1{grid-template-columns:1fr}
.tf-logo--1 b{font-family:Georgia,serif;font-style:italic;font-size:17px;color:#2f6f6a}
.tf-logo--1 small{grid-column:1}
.tf-logo--3 .tf-mark{border-radius:10px;background:#e46b45}
.tf-logo--3 .tf-mark i{border-radius:50%;width:14px;height:14px;background:#fff}
@media (max-width:560px){
  .tf-stage{grid-template-columns:1fr;min-height:0}
  .tf-out{grid-column:1;grid-row:auto}
  .tf-poster{max-width:160px}
}
@media (prefers-reduced-motion:reduce){.tf [data-shot]{transition:none}}
