/* Rails-only additions to the ported 3d design (site/pages.css, site/home.css). Loaded after
   them by layouts/site.html.erb. Keep the design files verbatim; put adaptations here.
   Utility classes replace the mocks' inline style attributes, so pages need no inline styles. */

.mt0{margin-top:0 !important}
.pt0{padding-top:0 !important}
.n1{--n:1}
.n2{--n:2}
.n3{--n:3}
.hky30{--hky:30px}

/* page bodies and the plain prose pages (privacy, terms) */
.phero.phero-tight{padding-bottom:clamp(28px,3vw,40px)}
.pbody{padding:0 0 clamp(64px,8vw,104px)}
.gprose p strong{color:var(--ink);font-weight:650}
.gprose a{color:var(--ink);text-underline-offset:3px}
.gprose ul{color:var(--ink-2);max-width:31em;padding-left:1.2em;margin:0 0 1em}
.gprose li{margin:0 0 .4em}
.gprose li strong{color:var(--ink)}
.legal > p:last-child{color:var(--ink-3);font-size:16px}

/* docs: the reference row carries a one-line explanation */
.grp .gi.gi-wide{max-width:34em;margin:0 0 14px;color:var(--ink-2)}

/* button rows outside the homepage */
.btn-row{display:flex;flex-wrap:wrap;gap:12px}
.mt-cta{margin-top:32px}

/* about */
.mt-mini{margin-top:clamp(32px,4vw,48px)}
.mt28{margin-top:28px}
.mt32{margin-top:32px}
.p-cta{margin:22px 0 0}
.neg-y4{margin:-4px 0}
.frag .ck.ck-todo{background:var(--lav)}

/* homepage */
.svg-defs{position:absolute}
.mt22{margin-top:22px}
.honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}
.field-error{font-size:15px;line-height:1.4;color:var(--del-ink)}
.field input[aria-invalid="true"],.field select[aria-invalid="true"]{border-color:var(--del-ink)}
.form-status.form-thanks{font-size:17px;line-height:1.5;color:var(--ok-ink);font-weight:600}

/* how it works: the index diagram and group fragments */
.mt-sys{margin:clamp(36px,4.6vw,56px) 0 0}
.stamp-row{display:flex;gap:8px;flex-wrap:wrap}
.frag .frag-q{align-self:flex-start;font-size:14px}
.m-stub.stub0{height:0}

/* guides: plain step diagrams (the copy's Diagram sections that have no bespoke figure) */
.gsteps{list-style:none;margin:22px 0 0;padding:0;display:flex;flex-direction:column;gap:14px;max-width:640px}
.gsteps li{position:relative;display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:4px 18px;align-items:baseline;background:var(--white);color:var(--ink);border-radius:4px;padding:14px 16px;border-left:4px solid var(--line-strong)}
.gsteps li + li::before{content:"";position:absolute;left:22px;top:-15px;width:2px;height:15px;background:var(--gold)}
.gsteps li.tone-violet{border-left-color:var(--gold)}
.gsteps li.tone-ember{border-left-color:var(--ember)}
.gsteps h3{font-size:18px;letter-spacing:-0.015em;line-height:1.25;margin:0}
.gsteps p{margin:0;color:var(--ink-2);font-size:16px;line-height:1.45}
@media (max-width:560px){.gsteps li{grid-template-columns:1fr}}
.gprose .stage .gsteps p{color:var(--ink-2)}

/* guides: the copy's example and status cards */
.gcard{margin:36px 0 0;max-width:31em;background:var(--lav);border:1px solid var(--lav-line);border-radius:4px;padding:20px 22px}
.gcard + .gcard{margin-top:16px}
.gcard-label{font:650 14px/1.3 var(--sans);color:var(--gold-ink);margin:0 0 8px;letter-spacing:.02em}
.gprose .gcard h2{font-size:22px;margin:0 0 10px}
.gprose .gcard p{color:var(--ink-2)}
.gprose .gcard > :last-child{margin-bottom:0}

/* homepage: the shift (copy revision 3). The static state is "after"; under html.motion the
   diagram waits in its "before" state and plays once when revealed (.in). */
.src-line{margin-top:18px;font-size:16px;color:var(--ink-3)}
.src-line a,.reports a{color:var(--ink);text-underline-offset:3px}
.shift-stage{margin:0;padding:var(--sp)}
.shift-dia{position:relative;height:360px;margin-top:16px;--c:46%;--f:93%}
.shift-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.shift-lines .narrow{display:none}
.shift-lines line{stroke:var(--gold);stroke-width:2;vector-effect:non-scaling-stroke}
.sd{position:absolute;transform:translate(-50%,-50%);white-space:nowrap}
.sd-role{background:var(--white);color:var(--ink);border-radius:4px;padding:8px 12px;min-width:92px;display:flex;flex-direction:column;gap:2px}
.sd-role b{font:700 15px/1.2 var(--display);letter-spacing:-0.01em}
.sd-role span{font-size:14px;line-height:1.3;color:var(--ink-3)}
.r1{left:14%;top:16%}.r2{left:86%;top:16%}.r3{left:14%;top:84%}.r4{left:86%;top:84%}
.sd-mind{left:50%;top:var(--c);width:96px;height:96px;border-radius:50%;background:var(--gold);color:var(--aub);display:grid;place-items:center;text-align:center;font:700 15px/1.15 var(--display);box-shadow:0 0 0 6px var(--aub),0 0 0 8px var(--foil)}
.sd-founder{left:50%;top:var(--f);background:var(--aub-band);color:var(--on-dark);border:2px solid var(--foil);border-radius:4px;padding:7px 12px}
.sd-founder b{font:700 15px/1.2 var(--display)}
.sd-q{left:50%;display:inline-flex;align-items:center;gap:6px;font:600 14px/1 var(--sans);background:var(--aub-2);color:var(--on-dark);border-radius:3px;padding:5px 8px;opacity:0}
.q1{top:62%}.q2{top:71%}.q3{top:80%}
.sd-q-ic{width:10px;height:10px;border:1.5px solid var(--gold-lt);flex:none}
.sd-q-meeting{border-radius:50%}
.sd-q-message{border-radius:3px 3px 3px 0}
.sd-q-handoff{border-radius:0;transform:rotate(45deg) scale(.8)}
.motion .shift-stage:not(.in) .sd-founder{top:var(--c)}
.motion .shift-stage:not(.in) .sd-mind{opacity:0}
.motion .shift-stage:not(.in) .sd-q{opacity:1}
.motion .shift-stage.in .sd-founder{animation:sd-founder 3.8s cubic-bezier(.5,0,.3,1) both}
.motion .shift-stage.in .sd-mind{animation:sd-mind 3.8s ease both}
.motion .shift-stage.in .sd-q{animation:sd-q 3.8s ease both}
@keyframes sd-founder{0%,42%{top:var(--c)}100%{top:var(--f)}}
@keyframes sd-mind{0%,58%{opacity:0;transform:translate(-50%,-50%) scale(.4)}100%{opacity:1;transform:translate(-50%,-50%) scale(1)}}
@keyframes sd-q{0%,34%{opacity:1}58%,100%{opacity:0}}
.reports{margin-top:clamp(36px,4vw,56px);max-width:46em;border-top:2px solid var(--ink);padding-top:22px}
.reports h3{font-size:22px;letter-spacing:-0.02em;margin:0 0 8px}
.reports p{margin:0 0 10px;color:var(--ink-2)}
.reports ul{list-style:none;margin:0;padding:0}
.reports li{position:relative;padding:14px 0 14px 22px;border-bottom:1px solid var(--line-strong);color:var(--ink-2)}
.reports li::before{content:"";position:absolute;left:0;top:25px;width:8px;height:8px;border-radius:50%;background:var(--gold)}
.reports li b{color:var(--ink);font-weight:650}
@media (max-width:600px){
  .shift-dia{height:440px;--c:43%}
  .shift-lines .wide{display:none}.shift-lines .narrow{display:inline}
  .sd-role{min-width:0;padding:6px 8px}
  .r1{left:24%;top:14%}.r2{left:76%;top:14%}.r3{left:24%;top:80%}.r4{left:76%;top:80%}
  .sd-mind{width:84px;height:84px}
  .q1{top:52%}.q2{top:59%}.q3{top:66%}
}
