/* rn.ayfie.ai: the pages before the work (sign-in, front page, AML). Loaded after app.css.
   The finished picture is the base CSS. Motion only lives under prefers-reduced-motion:no-preference,
   so without a script, or with reduced motion, every illustration shows its final state.
   Delays come from data-at attributes (tenths of a second), never from style attributes. */

/* ---------- the ownership picture (same look as the tool's drawing: og-node, og-pct from app.css) ---------- */
.own-pic{width:100%;max-width:380px;height:auto;margin:0 auto;overflow:visible}
.pic-track path{fill:none;stroke:var(--tint);stroke-width:1.6}
.pic-ln{fill:none;stroke:#9C93B8;stroke-width:1.6;stroke-dasharray:1}
.pic-arrow{fill:#9C93B8}
.pic-tag rect{fill:var(--tint)}
.pic-tag text{font:500 11.5px var(--body);fill:var(--accent-text)}

/* the three outputs, as three plain lines */
.outs{border-top:1px solid var(--rule-strong)}
.outs li{display:grid;grid-template-columns:minmax(0,9.5em) minmax(0,1fr);gap:4px 16px;align-items:baseline;padding:11px 0;border-bottom:1px solid var(--rule);font-size:15.5px;line-height:1.35}
.outs .k{color:var(--soft)}
.outs .v{font-weight:500}
.outs .v-cls{font-weight:500;color:var(--accent-text)}
.pic-label{font-size:13.5px;line-height:1.4;color:var(--soft)}

/* ---------- sign-in ---------- */
.login-wrap{display:grid;grid-template-columns:minmax(0,1fr);gap:48px;padding-top:56px}
.login-wrap .page{padding-top:0}
.login-note{margin-top:28px;max-width:26em;padding-top:16px;border-top:1px solid var(--rule);font-size:14.5px;line-height:1.5;color:var(--soft)}
.pic{display:grid;gap:18px;padding:24px 28px 20px;border:1px solid var(--rule);border-radius:16px;background:var(--surface)}
.pic-title{font:400 24px/1.1 var(--display);color:var(--ink)}
.pic .outs{margin-top:4px}
@media (min-width:900px){
  .login-wrap{grid-template-columns:minmax(0,420px) minmax(0,480px);justify-content:space-between;align-items:start;gap:56px}
  .login-wrap .login-box{max-width:none}
}
@media (prefers-reduced-motion:no-preference){
  .pic-login .pic-ln{animation:pic-draw-up .7s cubic-bezier(.3,.1,.3,1) .4s backwards}
  .pic-login .pic-ln.pic-l2{animation-delay:1.25s}
  .pic-login .pic-arrow{animation:pic-fade .25s ease .4s backwards}
  .pic-login .pic-arrow.pic-a2{animation-delay:1.25s}
}
@keyframes pic-draw-up{from{stroke-dashoffset:-1}}
@keyframes pic-fade{from{opacity:0}}

/* ---------- front page ---------- */
.hero{padding-top:56px}
.hero h1{font-size:clamp(40px,5.6vw,72px)}
.hero .lead{margin-top:18px}
.choices{margin-top:36px}
.choice{min-height:216px;padding:26px 30px 24px}
.choice .label{font-size:clamp(48px,4.6vw,64px);line-height:.95}
.choice .sub{margin-top:8px;font:500 24px/1.2 var(--body)}
.choice .desc{padding-top:18px}
.choice .go{top:28px}
.choice .soon{top:26px;background:var(--tint);color:var(--soft)}
.choice-soon{background:transparent;border-color:var(--rule);border-style:dashed}
.choice-soon .label{color:var(--faint)}   /* 3.5:1 on paper: large text needs 3:1 (was #B3ABC7, 2.1:1) */
.choice-soon .sub{color:var(--soft)}
.choice-soon:hover{transform:none;box-shadow:none;background:var(--tint-soft)}
.principle{margin-top:28px;display:flex;flex-wrap:wrap;gap:6px 22px;align-items:baseline}

.scene-sec{margin-top:88px;padding-top:32px;border-top:1px solid var(--rule-strong)}
.scene-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:12px 48px;align-items:end;margin-bottom:28px}
.scene-intro p{color:var(--soft);font-size:17px;line-height:1.5;max-width:34em}
.scene{position:relative;display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.25fr) minmax(0,1fr);border:1px solid var(--rule);border-radius:16px;background:var(--surface)}
.sc-col{padding:24px 28px 28px;min-width:0}
.sc-col + .sc-col{border-left:1px solid var(--rule)}
.sc-step{display:flex;align-items:center;gap:10px;padding-bottom:14px;margin-bottom:22px;border-bottom:2px solid var(--ink);font:500 15.5px/1.2 var(--body)}
.sc-step b{display:inline-flex;align-items:center;justify-content:center;flex:none;width:26px;height:26px;border-radius:50%;background:var(--ink);color:#fff;font:400 15px/1 var(--display)}
.sc-list li{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--rule)}
.sc-list li:first-child{padding-top:0}
.sc-list span{display:grid;gap:2px;font-size:14px;line-height:1.35;color:var(--soft)}
.sc-list b{font:500 15.5px/1.3 var(--body);color:var(--ink)}
.sc-tick{flex:none;width:18px;height:18px;border-radius:50%;background:var(--accent-text);position:relative}
.sc-tick::after{content:"";position:absolute;left:6px;top:3.5px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
.sc-own .own-pic{max-width:360px}
.sc-out .outs{border-top:0}
.sc-out .outs li{grid-template-columns:minmax(0,1fr);gap:2px}
.sc-out .outs li:first-child{padding-top:0}
.sc-note{margin-top:16px;font-size:14.5px;line-height:1.5;color:var(--soft)}
.sc-clock{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.scene-foot{display:flex;flex-wrap:wrap;align-items:center;gap:10px 22px;margin-top:14px}
.scene-foot .pic-label{margin-right:auto}
.scene-btn{display:inline-flex;align-items:center;gap:9px;min-height:36px;padding:0 6px;border:0;background:none;color:var(--ink);font:500 14.5px/1 var(--body);cursor:pointer}
.scene-btn:hover{color:var(--accent-text)}
.scene-btn i{width:10px;height:12px;border-left:3px solid currentColor;border-right:3px solid currentColor}
.scene-btn.is-play i{width:0;height:0;border:6px solid transparent;border-left:10px solid currentColor;border-right:0;margin-right:-4px}

/* the scene: one class (.sc-run) starts it, .sc-paused holds it; about seven seconds, plays once */
@media (prefers-reduced-motion:no-preference){
  .scene.sc-run .sc-step{animation:sc-step .35s ease backwards}
  .scene.sc-run .sc-f{animation:sc-in .45s ease backwards}
  .scene.sc-run .sc-d{animation:pic-draw-up .6s cubic-bezier(.3,.1,.3,1) backwards}
  .scene.sc-run .sc-tick{animation:sc-tick .3s ease backwards}
  .scene.sc-run .sc-bo{animation:sc-in .45s ease 3.5s backwards}
  .scene.sc-run .sc-bo rect{animation:sc-bo-rect .45s ease 4.2s backwards}
  .scene.sc-run .sc-bo .nm{animation:sc-bo-nm .45s ease 4.2s backwards}
  .scene.sc-run .sc-bo .sb{animation:sc-bo-sb .45s ease 4.2s backwards}
  .scene.sc-run .sc-clock{animation:sc-clock 7s linear}
  .scene.sc-run [data-at="1"]{animation-delay:.1s}
  .scene.sc-run [data-at="2"]{animation-delay:.2s}
  .scene.sc-run [data-at="12"]{animation-delay:1.2s}
  .scene.sc-run [data-at="18"]{animation-delay:1.8s}
  .scene.sc-run [data-at="21"]{animation-delay:2.1s}
  .scene.sc-run [data-at="25"]{animation-delay:2.5s}
  .scene.sc-run [data-at="26"]{animation-delay:2.6s}
  .scene.sc-run [data-at="30"]{animation-delay:3s}
  .scene.sc-run [data-at="33"]{animation-delay:3.3s}
  .scene.sc-run [data-at="35"]{animation-delay:3.5s}
  .scene.sc-run [data-at="42"]{animation-delay:4.2s}
  .scene.sc-run [data-at="50"]{animation-delay:5s}
  .scene.sc-run [data-at="53"]{animation-delay:5.3s}
  .scene.sc-paused,.scene.sc-paused *,.scene.sc-paused *::before,.scene.sc-paused *::after{animation-play-state:paused !important}
}
@keyframes sc-in{from{opacity:.16}}
@keyframes sc-step{from{color:var(--faint);border-bottom-color:var(--rule)}}
@keyframes sc-tick{from{opacity:0;transform:scale(.5)}}
@keyframes sc-bo-rect{from{fill:var(--tint-soft)}}
@keyframes sc-bo-nm{from{fill:var(--ink)}}
@keyframes sc-bo-sb{from{fill:var(--soft)}}
@keyframes sc-clock{to{opacity:0}}
/* the numbered dot dims with its step */
@media (prefers-reduced-motion:no-preference){
  .scene.sc-run .sc-step b{animation:sc-dot .35s ease backwards;animation-delay:inherit}
}
@keyframes sc-dot{from{background:var(--tint);color:var(--soft)}}

/* ---------- AML: planned workflow, still pictures ---------- */
.sb-head{margin-top:52px;padding-bottom:12px;border-bottom:1px solid var(--rule-strong)}
.sb-head h2{font-size:clamp(26px,3vw,34px)}
.sb-head p{margin-top:6px;font-size:14.5px;color:var(--soft)}
.storyboard li{display:grid;grid-template-columns:240px minmax(0,1fr);gap:28px;align-items:center;padding:22px 0;border-bottom:1px solid var(--rule)}
.storyboard figure{border:1px solid var(--rule);border-radius:12px;background:var(--surface);padding:10px}
.storyboard svg{width:100%;height:auto}
.storyboard .n{display:block;font:400 26px/1 var(--display);color:var(--accent-text);margin-bottom:6px}
.storyboard p{font-size:16px;line-height:1.55;max-width:32em}
.sb-svg text{font:400 11px var(--body);fill:var(--soft)}
.sb-svg .t{font-weight:500;fill:var(--ink)}
.sb-svg .r{text-anchor:end}
.sb-svg .ln{fill:none;stroke:var(--rule-strong);stroke-width:1}
.sb-svg .lt{fill:none;stroke:var(--rule);stroke-width:1}
.sb-svg .bar{fill:var(--tint)}
.sb-svg .mk{fill:var(--amber-bg)}
.sb-svg .mkl{fill:none;stroke:var(--amber);stroke-width:1.2}
.sb-svg .mkt{fill:var(--amber)}
.sb-svg .pen{fill:none;stroke:var(--accent-text);stroke-width:1.4}
.sb-svg .box{fill:var(--surface);stroke:var(--rule-strong);stroke-width:1}
.sb-svg .soft{fill:var(--tint-soft);stroke:var(--rule);stroke-width:1}
.aml-back{margin-top:32px}

/* ---------- smaller screens ---------- */
@media (max-width:1000px){
  .scene{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr)}
  .sc-out{grid-column:1/-1;border-left:0 !important;border-top:1px solid var(--rule)}
}
@media (max-width:720px){
  .login-wrap{padding-top:40px;gap:36px}
  .pic{padding:18px 14px 14px}
  .hero{padding-top:40px}
  .choice{min-height:0;padding:22px 22px 20px}
  .choice .label{font-size:48px}
  .choice .sub{font-size:21px}
  .scene-sec{margin-top:56px;padding-top:24px}
  .scene-intro{grid-template-columns:minmax(0,1fr);margin-bottom:20px}
  .scene{grid-template-columns:minmax(0,1fr)}
  .sc-col{padding:20px 18px 22px}
  .sc-col + .sc-col{border-left:0;border-top:1px solid var(--rule)}
  .scene-foot .pic-label{flex-basis:100%}
  /* the control sits above the stacked scene, where it can be seen (scene.js does not start it here) */
  .scene-sec{display:flex;flex-direction:column}
  .scene-intro{order:0}
  .scene-foot{order:1;margin:0 0 14px}
  .scene{order:2}
  .storyboard li{grid-template-columns:minmax(0,1fr);gap:14px}
  .storyboard figure{max-width:320px}
  .outs li{grid-template-columns:minmax(0,1fr);gap:2px}
}
